Tuesday, July 24, 2012

Cara Membuat Facebook Comment Di Blogger

Facebook Comments dapat membuat suatu blog menjadi lebih interaktif. Tutorial ini akan sedikit membantu teman tentang bagaimana step by step membuat Facebook Comment di blogger. 1. Hide Existing Comments - The best way to start off is by hiding the comments made from the Blogger System. To do that, go to Settings > Posts and Comments and set the Show Comments option to Hide and Save the Settings
2. Create a Facebook App To display Facebook Comments on your Blog you should have a Facebook Application. Don’t get worried by the name. You can do that with a few clicks. Go to this URL https://developers.facebook.com/apps and click on the Create New App button
Enter Some name for your App Agree to the Terms and click on the continue button image If it issues a Captcha verification, type the Captcha and click on the Submit Button image Now you will be taken to a Settings Screen image In the App Domain Field give blogspot.com (If you are using a custom domain give that) Give your Blog Address in the Site URL field under “Website” and Save The Changes. Copy the Application ID from the screen 3. Add Application and Moderator Meta Tags Modify the below code with the application id copied in step 2. meta content='YOUR_FACEBOOK_APPLICATION_ID' property='fb:app_id'/ Go to Template/Design > Edit HTML and paste the above code just below head and Save the Template image You should create the Facebook Application and the above fb:app_id meta tag should be added to your Blog. Otherwise you won’t be able to manage/moderate your Comments from a single Place(you will have to go to posts one my one and moderate and that too is possible only if you have added the fb:admins open graph meta tag). 4. Add FB Comments - Now you have to add the Facebook Comment Form to your Blog Template. To do that Go to Template/Design > Edit HTML and click on the “Expand Widget Templates” checkbox Find the following code in your template(Use the keyboard shortcut Ctrl + F), and immediately below that paste the following code: If you can’t find this, then find If you cant find that as well, then find data:post.body/ Paste the following code just below the line that you just found out If you want to alter the width, then you can change 450 to the width that you want. If you want the dark version of Facebook comments, then change light to dark in the above code. 5.FB Namespace Declaration - Next you have to add the fb namespace to your template tag.Your template should have the specification for the fb tag that you have used. The following XML namespace declaration will take care of that. To declare the namespace, find and change it to (there is a space after the 2008/fbml” )The following screenshot will help you out. image Save the Template. This namespace declaration is necessary for all FBML widgets using the fb tag. So if you have already added the namespace declaration while adding some other FB plugin, then you can skip this. 6. Hey! You are done.. Now you should see the Comment box on your Blog :) If you can’t see it, then it would probably be because you have added some Non-FBML Facebook Plugin. If that is the case, then remove it and add the FBML versions of those widgets. All Facebook Plugins Provided here use the FBML markup(at the time of writing). Managing Your Comments When you are logged in to your Facebook account, the Facebook comment plugin will detect that you are the admin(it will detect you if you have added the fb:app_id or fb:admins meta tags). You will be able to manage the Settings and moderate the comments from there: