10
To add the Comments Box to your site, follow these simple instructions:
1. Set up a basic Connect application. Take note of the API key and specify a callback URL to your website.
2. Download this cross-domain receiver file, and upload it to your website.
3. Add these snippets of code to each file where you want a Comments Box.
* Within the <html> tag, add: xmlns:fb="http://www.facebook.com/2008/fbml"
* Add the following code wherever you want a Comments Box to appear in your page. Replace '''YOUR_API_KEY_HERE''' with your API key, and include the path to the cross-domain receiver.
le="color: #000000"><?php <script src= "http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script> <fb:comments></fb:comments> <script type="text/javascript"> FB.init("YOUR_API_KEY_HERE", "<path from web root>/xd_receiver.htm"); </script>
That's it, your Comments Box is ready!