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?
Views: 9,786
New Zenner
Do I need to do something special to get a facebook app id? What is that?
New Zenner
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
New Zenner
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?
New Zenner
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?
New Zenner
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 .
New Zenner
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:
</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/
Tell staff why this post should be reviewed.