如何在canvas和iframe之外使用FBML?

发布于 2024-09-26 13:01:38 字数 449 浏览 0 评论 0原文

我想在我的网站上呈现 。我已经为我的网站注册了应用程序 ID 和应用程序密钥,并使用 Facebook PHP SDK 和 javascript SDK 成功实现了单点登录。由于已经编写了 JavaScript 库,因此必须初始化 xfbml 和 fbml 才能工作,因此我已经使用

FB.init({appId: 'config->facebook_settings->appid ?>', status: true , cookie: true, xfbml: true});

它放置在标签之前。单点登录一切都运行良好,但只有其他 FBML 标记未呈现。这些 FBML 是否仅适用于 Canvas、iframe 或任何地方。


抱歉,我忘记包含此内容 - 我想渲染此标签

I want to render the <fb:multi-friend-selector> on my website. I have already registered my website for Application ID and Application Secret, and have successfully implemented the single-signon using the Facebook PHP SDK and javascript SDK. Since it has been written the javascript library must be intialized for xfbml and fbml to work, hence I have already done that with

FB.init({appId: 'config->facebook_settings->appid ?>', status: true, cookie: true, xfbml: true});

It is placed just before the tag. And all is working great with single signon thing, but it is only the other FBML markups that aren't rendering. Do these FBML only works in Canvas or, iframe or, anywhere.


Sorry I forgot to include this - I want to render this tag

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

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

发布评论

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

评论(1

尝蛊 2024-10-03 13:01:38

这是示例如何使用fb:multi -facebook 之外的朋友选择器。如果您在页面加载后不添加 fbml,这将起作用。

Here is an example how to use fb:multi-friend-selector outside of facebook. This would work if you don't add fbml after the page is loaded.

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