开发者

How to use FBML outside canvas and iframe?

开发者 https://www.devze.com 2023-01-19 16:08 出处:网络
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

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 t开发者_StackOverflow中文版he 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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消