Facebook Connect 打开原生 facebook 应用程序,
我有一个使用 facebook 连接的 iPhone 应用程序,使用来自 github 代码的 FBConnect 。
它在模拟器中运行良好,但是当我使用 facebook 中的现有 facebook 应用程序将其安装到设备中时,它不起作用。它会打开现有的 Facebook 应用程序,而不是返回到我自己的应用程序。
I have an iPhone app using facebook connection using FBConnect from github code.
It worked fine in the simulator, however when I installed it in the device with existing facebook app from facebook it didn't work. It opens the existing facebook app instead of returning to my own app.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看此链接。
更好的是,您可以使用链接中给出的方法,因为它工作正常。我自己尝试过这段代码,它对我有用。
另外,下面的链接中给出了示例项目(其中实现了 Facebook API),这将有助于您按照下面链接中给出的方法实现 facebook API。
http:// www.raywenderlich.com/1488/how-to-use-facebooks-new-graph-api-from-your-iphone-app
此外,您还可以在采用此方法之前在设备上测试示例项目
希望如此对你有帮助。
编辑:
Checkout this link.
Better you can go with the approach given in the link as it works fine. I have myself tried this code and it has worked for me.
Also the sample project (with Facebook API implemented in it) is given in the below link which will be helpful for you to while implementing the facebook API as per the method given in the below link.
http://www.raywenderlich.com/1488/how-to-use-facebooks-new-graph-api-from-your-iphone-app
Also you can test the sample project on your device before going for this approach
Hope this helps you.
EDIT:
您是否注册了 URL 处理程序来响应来自 Facebook 应用程序的返回请求?在 iOS 4 上,Facebook SDK 使用快速应用程序切换,旨在让应用程序处理大部分繁重的工作,并让用户只需点击“接受”,而不必重新输入登录名/密码
Have you registered a URL handler to respond to return requests from the Facebook app? on iOS 4 the Facebook SDK uses fast app switching which is designed to let the app handle most of the heavy lifting and let the users just hit "Accept" instead of having to re-enter login/passwords