How to use facebook plugin for comments on facebook page

We have a Face Book page. We are adding a custom FBML tab. Now we want to add the Face Face plugin. I tried to add a script to what I got from Face Book Social Plug in . The code

<div id="fb-root"></div><script <src="http://connect.facebook.net/en_US/all.js#appId=178089302222317&amp;amp;xfbml=1"></script><fb:comments numposts="10" width="425" publish_feed="true"></fb:comments> 

After that, I put this script on a custom FBML page, but it does not reflect anything, suggesting to solve this problem.

Thanks in advance.

+6
facebook facebook-page facebook-fbml
source share
2 answers
 <fb:comments xid="some_unique_id_doesnt_matter_what" canpost="true" candelete="false" publish_feed="true" numposts="10" returnurl="http://facebook.com/YOURPAGE"> <fb:title>Headline</fb:title> </fb:comments> 

this is what you are looking for .. your code does not work in fbml, your xfbml

 <fb:title> 

is optional

+1
source share

You should start over and not use FBML, but use an iframe instead.

You are trying to create an application on a page tab. To do this, take a look at the FB developer site and it will show you how to get started with an iframe-based application, and then how to get it working on the page tab.

https://developers.facebook.com/docs/guides/canvas/#tabs

Once you upgrade to iframes, you can use all the social plugins and other advanced features like the Graph API.

+3
source share

All Articles