通过iOS设置屏幕登录时,无法登录Facebook [英] I cannot log into Facebook when logged in via the settings screen of iOS
问题描述
当没有通过系统设置登录到Facebook时,一切都正常。但是,当我通过系统设置登录时,我无法通过Unity3D Prime31插件登录到Facebook。
When not logged into Facebook via the system settings, everything functions fine. However, I cannot log into Facebook through the Unity3D Prime31 plugin when I am logged in already via the system settings.
在允许这些应用使用您的帐户选项下,我的应用被列出并被启用。在应用程序本身,当我按登录按钮时,弹出一个对话框,弹出一个说明:[App name here]想要访问您的基本个人资料信息和朋友列表,选项不允许和确定 。我按OK按钮,并触发函数loginFailedEvent。
Under the option "Allow these apps to use your account", my app is listed and is enabled. In the app itself, when I press the log in button, a dialog pops up stating: "[App name here] would like to access your basic profile info and list of friends" with the options 'Don't Allow' and 'OK'. I press the OK button, and the function "loginFailedEvent" is triggered.
在我调用'init'的函数中,我刚刚有这一行:
In my function that calls 'init', I have this line just after it:
FacebookBinding.setSessionLoginBehavior(FacebookSessionLoginBehavior.UseSystemAccountIfPresent);
这是XCode中记录的内容:
This is what is logged in XCode:
会话创建错误:错误Domain = com.facebook.sdk代码= 2
操作无法完成(com.facebook.sdk错误2.)
UserInfo = 0x1aa7bc80
{com.facebook.sdk:ErrorLoginFailedReason = com.facebook.sdk:SystemLoginCancelled
session creation error: Error Domain=com.facebook.sdk Code=2 "The operation couldn’t be completed. (com.facebook.sdk error 2.)" UserInfo=0x1aa7bc80 {com.facebook.sdk:ErrorLoginFailedReason=com.facebook.sdk:SystemLoginCancelled
任何帮助
推荐答案
简单的你需要访问会话意味着使用登录Facebook通过设置(远程访问),然后你按照简单的步骤k,打开developer.Facebook。 com并添加您的包标识符,例如com.xxxxxx.xxxx,不要对您的xcode进行任何更改,k,它将正常工作为您
Simple you need to access the session means using login facebook via settings (remote access), then you follow the Simple steps k, open developer.Facebook. com and add your bundle identifier there e.g com.xxxxxx.xxxx , don't do any changes in your xcode,k, it will be working fine for u
这篇关于通过iOS设置屏幕登录时,无法登录Facebook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!