简体   繁体   English

Facebook Unity SDK iOS登录未使用系统级登录,而是使用浏览器或Facebook应用

[英]Facebook Unity SDK iOS login is not using system level login but uses browser or facebook app

I have encountered an issue where a facebook user is logged in from within iOS 7.1 itself (from Settings app). 我遇到了一个问题,其中Facebook用户是从iOS 7.1本身(通过“设置”应用程序)登录的。 My app is ignoring this system level log in, and instead is switching to the facebook app (if installed), or web browser to log in the user. 我的应用程序忽略了此系统级别的登录,而是切换到了Facebook应用程序(如果已安装)或Web浏览器以登录用户。 From facebook developers dashboard, under iOS settings I have entered the correct bundle identifier, and also enabled Single Sign On. 在Facebook开发人员仪表板上,在iOS设置下,我输入了正确的捆绑包标识符,并启用了“单一登录”。 Also in the Settings app, there is no switch for my app to allow it to use the facebook account. 同样在“设置”应用中,我的应用没有任何开关允许其使用Facebook帐户。

I'm using Facebook Unity SDK 5.1 and Unity 4.3.0f4 我正在使用Facebook Unity SDK 5.1和Unity 4.3.0f4

(PS On Android it works fine and uses the system level login) (PS在Android上运行正常,并使用系统级登录名)

Any ideas? 有任何想法吗?

It sounds to me like your URL scheme suffix isn't set up correctly. 在我看来,您的网址方案后缀未正确设置。 If you press open the Facebook menu on the top bar in unity and click edit settings it will open your Facebook settings. 如果您按统一打开顶部栏上的Facebook菜单,然后单击编辑设置,它将打开您的Facebook设置。

Within this window put "fb" + appId eg fb0123456789 into the URL scheme suffix box. 在此窗口中,将“ fb” + appId(例如fb0123456789)放入URL方案后缀框中。 Then instead of hitting build and run to test, just press build so that your post processes will make this change in your plist. 然后,您无需按构建键即可运行并进行测试,只需按构建键,这样您的后期处理就会在您的plist中进行更改。

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

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