如何实施 Facebook“Like-IT” Iphone/Ipad 上的按钮?

发布于 2024-10-08 10:04:52 字数 80 浏览 0 评论 0原文

我想在我的 Iphone/Ipad 应用程序中集成“我喜欢它”按钮,请帮助我?有一些步骤和所有必需的东西???

提前非常感谢...

I want to interigrate i like it button in my Iphone/ Ipad application please help me out?? with some steps and all the required things ????

Thanks a lot in advance...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风轻花落早 2024-10-15 10:04:52

您指的是“喜欢”按钮还是“我喜欢”流帖子?

对于“Like”按钮,您需要创建一个 UIWebView,然后:

  • 在某个地方托管一个带有 xfbml 或 iframe 之类按钮的页面
  • ,或者使用 NSBundle 注入 HTML 和 javascript,然后从字符串中读取它

无论哪种方式 - 您都会得到一个就像按钮工作一样。

对于流发布,您需要使用 iOS SDK 使用适当的参数和消息对“/me/feed”、“post”等进行图形调用。

Are you speaking of the "Like" button or the "i like it" stream post?

For the "Like" button, you need to create a UIWebView and then:

  • have a page hosted somewhere with your xfbml or iframe like button
  • or use NSBundle to inject HTML and javascript and then read it from a string

Either way - you will get a like button working.

For the stream publish, you need to use the iOS SDK to make a graph call to '/me/feed', 'post' etc... with your appropriate params and message.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文