简体   繁体   中英

Can't get native login to work with Facebook iOS SDK

I'm using the Facebook iOS SDK component. On the top of the page, it says:

Native Facebook Login , which is the first step in using Facebook to drive user engagement and app installs.

All I get when I try to use this control is the WebView. I've looked into the Facebook iOS SDK to find that Native is the first prompt it tries, but I've used "OpenWithBehavior" to be sure we ignore WebView entirely, with no change. I've double- and triple-checked the AppID and DisplayName being used and they are both correct. I can login successfully using the WebView, I just can't get it to launch into the native app on my phone.

I know our app is configured correctly for Facebook login to work, because the app we have currently published on the App Store has native Facebook login.

This has been checked on two different iOS devices, both with Facebook installed. We've also tried reinstalling Facebook and trying both the default FBLoginView element included with the component as well as our own custom button.

I have no idea how to proceed. Can anyone provide any help or further ideas for what we could troubleshoot?

Thanks.

To get authenticated from the native facebook app, you need to FacebookAppID and url type in info.plist file, make sure you're using same bundle identifier as you mentioned in facebook app settings.

Check screenshot: I am new to Facebook SDK with iOS. I want to send invitation to friends on Facebook

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM