Facebook Graph API 与 iPhone SDK
有人能够在本机 iPhone 应用程序中实现 Facebook 的 Graph API 吗?
当涉及到 iPhone 集成时,文档相当稀疏,但获取用户信息的调用看起来比以前使用 FBConnect 的方法要轻量得多。所以我想用它。
我看过一些帖子,但没有人解释你会像我们之前使用 FBConnect 那样实现登录按钮吗?
如果有人实现了这一点或者可以给我提供任何建议,那就太棒了
Has anyone been able to implement Facebooks Graph API in a native iPhone Application?
The documentation is pretty sparse when it comes to iPhone integration, but the calls to get users information looks a lot more light weight than the previous method of using FBConnect. So i would like to use it.
I have seen a few posts about but none explain you you would implement the login button as we did previously with FBConnect?
If any one has achieved this or can offer me any pointers that would be brilliant
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
尝试 ShareKit。
我在几个小时内就在我的应用程序中实现了共享。
Try ShareKit.
I implemented sharing in my app in few hours.
我目前正在使用 UIWebView 通过 Facebook 的 Graph API 进行身份验证,如此处所述。然而,这实际上并不允许与应用程序进行任何交互,例如显示加载对话框或错误消息。每当我收到 Facebook 的响应时,我都会尝试拦截
webViewDidFinishLoad
,并在出现问题时显示带有错误消息的UIAlertView
。问题是,Facebook 已经更改了他们的 URL 之一,所以我的字符串比较不再有效。目前我不打算在这方面投入更多时间,因为 Android 的 SDK 已经在 Google I/O 期间发布(很快就会发布),并且有传言称 iPhone SDK 将在 WWDC 期间发布。
I'm currently using a UIWebView to authenticate with Facebook's Graph API as described here. However, that doesn't really allow any interaction with the application, e.g. showing a loading dialog or error message. I tried to intercept the
webViewDidFinishLoad
whenever I get a response from Facebook and show anUIAlertView
with an error message when something goes wrong. The problem is, that Facebook already changed one of their URLs, so my string comparisons didn't work any more.At the moment I'm not going to invest more time into this, because a SDK for Android has already been announced during Google I/O (will be released very soon) and the iPhone SDK is rumored to be released during WWDC.
我目前正在使用 UIWebView 通过 Facebook 的 Graph API 进行身份验证,如下所述
http://www.mobisoftinfotech.com/blog/iphone/ iphone-fbconnect-facebook-connect-tutorial/
I'm currently using a UIWebView to authenticate with Facebook's Graph API as described
http://www.mobisoftinfotech.com/blog/iphone/iphone-fbconnect-facebook-connect-tutorial/