Forums / Basic Configuration / Facebook comment box on product pages

Facebook comment box on product pages

Views: 9,786

Results 21 to 26 of 26
23 Jul 2011, 1:18 AM
#21
nadiausa avatar

nadiausa

New Zenner

Join Date:
Sep 2008
Location:
Los Angeles, CA
Posts:
82
Plugin Contributions:
0

Facebook comment box on product pages

Do I need to do something special to get a facebook app id? What is that?

23 Aug 2011, 10:17 AM
#22
endre avatar

endre

New Zenner

Join Date:
Dec 2008
Posts:
38
Plugin Contributions:
0

Re: Facebook comment box on product pages

Hi Nadia.
Sorry about the late reply, summer holiday and all that.
Facebook Apps can be set up from this page:
http://developers.facebook.com/setup/

Cheers
Endre

21 Sep 2011, 6:32 PM
#23
adamt avatar

adamt

New Zenner

Join Date:
Aug 2009
Posts:
18
Plugin Contributions:
0

Re: Facebook comment box on product pages

I've just added this mod to one of my client's sites, but am getting an error showing up below the comment box:

Warning: http://pamwardenart.com/index.php?main_page=product_info&cPath=46_43%20&products_id=93 is unreachable.

The error message links over to an "Object Debugger" FB tools page with the following error:

App ID does not match domain

The app ID specified within the "fb:app_id" meta tag is not allowed on this domain. You must setup the Connect Base Domains for your app to be a prefix of http://pamwardenart.com/index.php?main_page=product_info&cPath=46_37+&products_id=120.

I have the correct app ID in there. Can anyone help with this?

30 Sep 2011, 3:20 AM
#24
littlekid440 avatar

littlekid440

New Zenner

Join Date:
Dec 2009
Posts:
55
Plugin Contributions:
0

Re: Facebook comment box on product pages

i'm unable to get this working properly as a review/product page

I am using SEO URI and when I add the item to shopping cart and come back to the page it gives me ?products_id=(id:zenid) at the end of the url which makes facebook think it is a different page.

does anyone here know a fix?

2 Dec 2011, 6:45 PM
#25
timlo avatar

timlo

New Zenner

Join Date:
Jan 2008
Posts:
20
Plugin Contributions:
0

Re: Facebook comment box on product pages

lilly06:

forget my question i found it! thanx!

Please tell me how do you fix it?

I have get this work , but there is no option for the image, it show other image rather then the product image,. please help .

20 Feb 2012, 10:09 PM
#26
endre avatar

endre

New Zenner

Join Date:
Dec 2008
Posts:
38
Plugin Contributions:
0

Re: Facebook comment box on product pages

I'm sure someone has experienced a bit of a problem when it comes to moderating comments made on their site.
The "new" code from Facebook (not sure when this happened, haven't had time to follow this up as much as I should have unfortunately) is placed in one more file this time: /your_template/common/tpl_main_page.php.
Find:

<?php require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>
</div>
</div> Paste right after: <!--bof Facebook comments--> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId=YOUR_APP_ID"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <!--eof Facebook comments-->

Finally in the /your_template/templates/tpl_product_info_display.php, paste where you want the comment box to show:

<!--bof Facebook comments--> <div class="fb-comments" data-href="<?php echo zen_href_link(zen_get_info_page((int)$_GET['products_id']),'cPath='. $_GET['cPath'].' &products_id='. $_GET['products_id']); ?>" data-num-posts="3" data-width="600"></div> <!--eof Facebook comments-->th="600"></div>

To moderate the comments, go to: http://developers.facebook.com/tools/comments/