FBConnect 演示应用程序
我正在运行 facebook-ios-sdk 提供的演示应用程序。应用程序在模拟器中启动,并带有登录按钮。我单击按钮,然后启动 Safari 以授予对应用程序的访问权限。我使用我的 Facebook 凭据登录并允许该应用程序。我是该应用程序的管理员,并且我已验证输入了正确的应用程序密钥。
在我允许访问后,它显示“Safari 无法打开该页面,因为地址无效”...这是它尝试访问的网址: http://www.facebook.com/connect/uiserver.php...
那么我是否遗漏了一些东西,因为 (void)fbDidLogin 的断点
永远不会被击中...
I am running the demo application that is supplied with the facebook-ios-sdk. The application starts in the emulator, with a LogIn button. I click the button which then launches safari to grant access to the application. I log in with my fb creds and allow the application. I am the administrator for the application and I have verified I put in the right app key.
After I allow access, it says "Safari cannot open the page because the address in invalid"...this is the url it's trying to go to: http://www.facebook.com/connect/uiserver.php...
So am I missing something because the breakpoint for (void)fbDidLogin
never gets hit...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
其详细信息请参见 Facebook SDK README 文件 -
https://github。 com/facebook/facebook-ios-sdk/blob/master/README.mdown
向下滚动到“身份验证和授权”部分,它会引导您完成它。
不想将其发布在这里,以防它发生变化
- 乔纳森
its detailed in the Facebook SDK README file -
https://github.com/facebook/facebook-ios-sdk/blob/master/README.mdown
scroll down to the Authentication and Authorization section, it walks you though it.
Don't want to post it here, incase it ever changes
-Jonathan
我发现了问题...我没有将我的应用程序绑定到与我的 Facebook 应用程序 ID 相对应的 URL 方案。一旦我这样做了,回调就可以正常工作了。
I figured out the problem... I didnt bind my application to a URL scheme corresponding to my Facebook application ID. Once I did this the callbacks were working properly.
这是你注册的问题。我认为您在网站字段中输入了错误的内容
This is the problem of your registration. I think you put the wrong thing in the website field