*

unlimit

  • ***
  • 25 posts
Intergrate Facebook Comment plugin to item page
« on: February 12, 2019, 06:41:37 PM »
The popularity of Facebook has prompted many website owners to include Facebook comments and Facebook Social plugins on their blogs and websites to allow easier sharing of content and interaction using Facebook.

I want to integrate  Facebook comment plugin to my website hence Followed these guidelines.

https://developers.facebook.com/docs/plugins/comments


it shows all comment for the website but not for the single item.


(FB CODE:   <div class="fb-comments" data-href="http://your-website.com" data-numposts="5"></div> )


The facebook code uses the website URL. Instead of the website URL, i want the "Item url" instead.

So is there a code to get item url?


ex:  FOR BENDER THEME

<!-- FACEBOOK COMMENT-->
<h2>Comment with Facebook:</h2>
div class="fb-comments" data-href="<?php echo osc_item_url() ; ?>" data-numposts="5" data-colorscheme="light" data-width="100%"></div>
<!-- FACEBOOK COMMENT-->



*

MB Themes

Re: Intergrate Facebook Comment plugin to item page
« Reply #2 on: February 12, 2019, 08:30:56 PM »
Code: [Select]
<?php echo osc_item_url(); ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

unlimit

  • ***
  • 25 posts
Re: Intergrate Facebook Comment plugin to item page
« Reply #3 on: February 12, 2019, 11:39:12 PM »
Superb

Working 100%
Thanks

*

oneloveb

  • ****
  • 112 posts
Re: Intergrate Facebook Comment plugin to item page
« Reply #4 on: March 10, 2019, 05:41:16 PM »
Hello,
Please I paste the above code on stela themes it show the code on items page not the comment box, any help will be appreciated