开发者

facebook iOS SDK not in browser

I was just playing with the iOS sample code of the facebook sdk, however I am seeing a screen like this when I login:

facebook iOS SDK not in browser

Now usually in other apps, I don't see the web address and the search bar. I only see facebook in the tab bar. So how can I achieve the same thi开发者_JAVA技巧ng?


When you ask the Facebook API to authenticate the user, it will try to launch the Facebook app if it's installed; if not, it launches Safari instead. Since you don't have the FB app installed on the simulator, it's launching Safari on the simulator.

If you test on a device instead that has the FB app, then you'll see it launch that as expected.


You are using the sdk to open facebook in Safari,that's why you see the address bar.Usually the apps uses facebook to open in webView for authentication.And one more thing,Currently all iphone apps uses Graph Api instead of Facebook Sdk.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜