iPhone Facebook登录Safari无法打开页面 [英] iphone facebook login safari cannot open the page

查看:658
本文介绍了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

这篇关于iPhone Facebook登录Safari无法打开页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆