简体   繁体   English

无法获得原生登录以使用Facebook iOS SDK

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

I'm using the Facebook iOS SDK component. 我正在使用Facebook iOS SDK组件。 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. 原生Facebook登录 ,这是使用Facebook推动用户参与和应用安装的第一步。

All I get when I try to use this control is the WebView. 我尝试使用此控件时获得的只是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. 我查看了Facebook iOS SDK,发现Native是它尝试的第一个提示,但是我使用了“OpenWithBehavior”来确保我们完全忽略了WebView,没有任何变化。 I've double- and triple-checked the AppID and DisplayName being used and they are both correct. 我已经对正在使用的AppID和DisplayName进行了双重和三重检查,它们都是正确的。 I can login successfully using the WebView, I just can't get it to launch into the native app on my phone. 我可以使用WebView成功登录,我无法将其启动到手机上的本机应用程序中。

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. 我知道我们的应用程序配置正确,Facebook登录工作,因为我们目前在App Store上发布的应用程序具有本机Facebook登录。

This has been checked on two different iOS devices, both with Facebook installed. 这已经在两个不同的iOS设备上进行了检查,两者都安装了Facebook。 We've also tried reinstalling Facebook and trying both the default FBLoginView element included with the component as well as our own custom button. 我们还尝试重新安装Facebook并尝试组件中包含的默认FBLoginView元素以及我们自己的自定义按钮。

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. 要从本机Facebook应用程序进行身份验证,您需要在info.plist文件中输入FacebookAppID和url,确保您使用的是与Facebook应用程序设置中提到的相同的包标识符。

Check screenshot: I am new to Facebook SDK with iOS. 检查屏幕截图: 我是iOS SDK的新手。 I want to send invitation to friends on Facebook 我想在Facebook上向朋友发送邀请

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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