如何在canvas和iframe之外使用FBML?
我想在我的网站上呈现
。我已经为我的网站注册了应用程序 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是示例如何使用
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.