I have a web-site, where I have facebook comments social plugin on each page and I have facebook page, where I publish items as "shared links" from my site via RSS (through dlvt.it). Links to items are the same.
Now comments are diferent in two places (on facebook page and on web-site)
The question is how can I make that comments on facebook page items ap开发者_StackOverflow社区pears also on my web-site's comment form ?
Regards, Anton.
You need to create a Facebook application. Once you have created this, you'll get your app_id
. In your website, you can then add:
xmlns="http://www.facebook.com/2008/fbml">
to your HTML tag, and then add in the body
tag:
<script src="http://connect.facebook.net/en_US/all.js#appId=YOURAPPID&xfbml=1"></script>
<script type="text/javascript">
FB.init({
appId: 'YOUR APP ID',
status: true, // check login status
cookie: true, // enable cookies to allow the server to access the session
xfbml: true // parse XFBML
});
</script>
This will allow you to access Facebook plugins from your website. So, for comments
you can use:
<fb:comments href="Your Page" num_posts="10"></fb:comments>
精彩评论