iframe 应用程序上的 Facebook Like 按钮
我将我的应用程序用作使用 iframe 实现的页面上的选项卡。我正在迭代一些链接,对于每个链接我想添加一个“喜欢”按钮,但没有 生成的按钮由于某些限制而起作用。
我得到的最接近的 API 是 FBJS 的 Facebook.streamPublish,但这不是完全等于喜欢。
我是否应该将我的应用程序切换到 FBML 以便 XFBML Like 按钮可以工作,或者可以吗?
我对 Facebook 的开发者文档感到非常失望,尤其是选项卡。他们似乎被迫使用即将弃用的 API,因为我无法获取 新的 API Javascript SDK 完全可以工作。
I have my app used as a tab on a page implemented using iframe. I'm iterating over some links and for each link I'd like to add a Like button, but none of the generated buttons work because of some restrictions.
The closest I've got, with their APIs is FBJS's Facebook.streamPublish, but that's not exactly equal to Like.
Should I switch my application to FBML so that the XFBML Like button would work, or would it?
I'm really frustrated with Facebook's developer documentation, especially for the tabs. They seem to be forced to use the soon to be deprecated APIs, since I couldn't get the new Javascript SDK working at all.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您想要的标签是
1。您是否想在选项卡或画布页面中完成此操作?如果它是一个选项卡,请知道 FB 会竭尽全力阻止开发人员在页面选项卡上放置“赞”按钮,因此您应该重新考虑这种方法。请注意,
的 iframe 版本在该选项卡中不起作用,因为您现在无法在该选项卡中使用 iframe。 (计划在第一季度将选项卡迁移到 iframe)如果您在画布页面上,则“赞”框应该可以正常工作。确保 Facebook SDK 已 (a) 加载并 (b) 初始化。
The tag you want is
<fb:like-box>
1. Are you trying to accomplish this in a tab or a canvas page? If it's a tab, know that FB goes out of their way to prevent developers from putting Like buttons on Page tabs, so you should reconsider that approach. Know that the iframe version of<fb:like-box>
does not work in the tab, since you cannot use iframes there right now. (There is a scheduled Q1 migration of tabs toward iframes)If you're on a canvas page, the Like box should just work. Make sure that the Facebook SDK is (a) loaded and (b) initialized.