开发者

facebook iOS SDK not in browser

开发者 https://www.devze.com 2023-04-05 01:38 出处:网络
I was just playing with the iOS sample code of the facebook sdk, however I am seeing a screen like this when I login:

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

精彩评论

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