开发者

How many application id's do I need for the like/Send button and SDK? Do I need one for each?

开发者 https://www.devze.com 2023-03-31 17:45 出处:网络
When installing the XFBML like/send button and the accompanying SDK, do I need to create separate application id\'s for both the button and the SDK?

When installing the XFBML like/send button and the accompanying SDK, do I need to create separate application id's for both the button and the SDK?

Or ca开发者_StackOverflow社区n they both share the same application id?


You can (and should) use the same appid for everything related to your Facebook app. When the browser loads this code it loads the SDK as well as the social plugins (such as like and send):

<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
     FB.init({ 
        appId:'YOUR_APP_ID', cookie:true, 
        status:true, xfbml:true 
     });
</script>

This need only appear once per page where you are using social plugins, and you only need a single appid.

0

精彩评论

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