Facebook comments plugin

4 posts by 2 authors in: Forums > CMS Builder
Last Post: September 18, 2011   (RSS)

By videopixel - September 17, 2011

I want to add this plugin from Facebook:

http://developers.facebook.com/docs/reference/plugins/comments/

But because my pages are dynamic what url need I put in to the "URL to comment on" box?

Re: [videopixel] Facebook comments plugin

By MickC - September 17, 2011

Hi Videopixel,

I just set up the Facebook Like/Recommend plugin at the bottom of each dynamic listing, and just used PHP code to specify the URL - works perfectly for me!

here is the code that does the job:
<div class="fb-like" data-href="http://used.xxxxxxx.com.au/listing/extListingDetails.php?<?php echo $listingsRecord['num'] ?>" data-send="true" data-width="500" data-show-faces="true" data-action="recommend" data-font="verdana"></div>

This makes the url specify the exact page to go to.

I know this is for the Like/Share plugin, but i looked at the code for the Comments plugin and it looks very similar

See how that goes :)