开发者

Facebook-IFrame

I am developing a facebook application u开发者_运维技巧sing IFrame. how to add share option in my application.


You need to use XFBML in an Iframe application.

This should work. Put your Facebook application's API Key in and reference your cross-domain receiver file (xd_receiver)

<fb:share-button href="http://apps.facebook.com/your_app" type="box_count"></fb:share-button>
<script src="http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<script type="text/javascript">
    FB_RequireFeatures(["XFBML"], function() {
        FB.init("api key goes here", "path to your xd_receiver file goes here");
});
</script>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜