As per TechCrunch, there are 50,000 websites which have already integrated Facebook’s new social plugins, is your blog one of them?
Up till now, Facebook has offered 8 social plugins, just as below:
- Activity Feed
- Like Box
- Like Button
- Live Stream
- Login with Faces
In order to add any of the above 8 Facebook social plugins to your blog, you can use the iframe code or XFBML code. There are both iframe code and XFBML code for Activity Feed, Like Box, Like Button, Live Stream as well as Recommendations, but there is only XFBML code for Comments, Facepile and Login with Faces.
Below are the steps for you to add an XFBML social plugin to your blog:
1. Create an Application
Opening Facebook Create an Application webpage，you will see a screen like below:
Enter your blog name, blog URL and select your blog language, click on the “Create application” button, then you will see your app name, URL, ID, secret and sample code, just as below:
In the sample code, we just need below section for WordPress blog:
2. Add XFBML Code
The effect of the Comments social plugin will look like this:
The Comments Box has been updated, and the old one are not available any more.