iPhone Facebook登录Safari无法打开页面

问题描述:

我正在尝试集成facebook sdk 3.1.1,在身份验证时遇到问题,当我在Safari中授权该应用时,它显示无法打开页面"-"Safari无法打开页面,因为地址无效" 有什么猜想吗?

I am trying to integrate facebook sdk 3.1.1, I am getting issue in authenticating , when I authorize the app in safari it says "Cannot open page" - "Safari cannot open the page because the address is invalid" any guesses ?

:如果在设置中添加了帐户,则可以正常运行,但如果没有链接的帐户,则必须打开我这样打开的会话

EDIT : if there is account added in settings it works fine, but if the there is no account linked, then have to open the session i open like this

        [FBSession openActiveSessionWithAllowLoginUI:YES];

它会在验证应用程序后打开safari [确定],无法打开页面"的safari弹出窗口,并且不会打开该应用程序.身份验证的其他方式???

it opens the safari after authenticating the app[Okay], safari popups for "Cannot open page" and doen not open the app. Other ways of authenticating ???

我了解或发现任何文档,其中也包含facebook appid 项目>目标>信息> URL类型>除plist之外的URL方案

I dint know or found any documentation that there is also facebook appid under Project > Target > Info > URL Types > URL Schemes besides plist

在我的情况下,它不存在,但是在Facebook的示例项目中,我在其中插入了带有fb的appid,效果很好

in my case it was not there but in sample projects from facebook it was there, I inserted the appid with fb and it worked perfectly

编辑:将fb放在您的应用ID前面,例如fb123456789

Edit: put fb in front of your app id eg. fb123456789