且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

通过简单的URL Sheme问题在Native Facebook IOS App中打开Facebook页面

更新时间:2023-12-02 18:12:10

我相信我找到了一个解决方案...目前在facebook ios 5.0.1 for iPhone下运行..尚未在iPad上试过。

I believe I've found a solution... It works currently under facebook ios 5.0.1 for iPhone.. haven't tried it in iPad yet.

网址为fb:// profile / 132753734806

The url is fb://profile/132753734806

现在重要的部分就是那个数字。这与我的一位客户Charles Scott有关。但是,这不是他们的FBID或Page ID ..他们的页面ID是10150348920319807

NOW the important part is that number. That links to one of my clients, Charles Scott. HOWEVER, that's not their FBID or Page ID.. their Page ID is 10150348920319807

所以你认为它应该是fb:// profile / 10150348920319807但是这给了我一个错误。

so you would think it should be fb://profile/10150348920319807 but that gives me an error.

以下是您获取正确代码的方法..点击您网页上的任意照片..这是我客户的示例 https://www.facebook.com/photo.php?fbid= 10150348920319807& set = a.10150348920314807.356942.132753734806& type = 1& theatre

Here's how you get the correct code.. click on any of your page's photos.. here's an example for my client https://www.facebook.com/photo.php?fbid=10150348920319807&set=a.10150348920314807.356942.132753734806&type=1&theater

如果您注意到在该URL中fbid =之后无效的FBID。你想要的数字就在& type = 1剧院之前,但是在最后一段时间之后。 132753734806是在fb:// profile /

if you notice the FBID that does not work follows fbid= in that URL.. the number you WANT is just before the &type=1theater but following that last period. 132753734806 is the correct code to punch in after fb://profile/

我希望这有点意义......我对代码或编码一无所知但是这很烦人我这么多,我知道有办法。

I hope that makes some sense... I know zero about code or coding but this was bothering me so much and I knew there was a way.

现在,我希望能回答/工作的两个问题.. 1.如果这可以在Android手机上运行2.为此网址创建一个有效的qr代码,以便人们可以使用ios设备扫描并自动打开

Now, the two questions I would love to have answered/working.. 1. if this could work on android phones 2. create a working qr code for this url so people can scan with ios devices and have it open automatically

祝你好运,我希望这对所有人都有帮助!

Good luck and I hope this helps everyone!