开发者

Facebook-IFrame

开发者 https://www.devze.com 2022-12-09 04:55 出处:网络
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.

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

精彩评论

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