Support Forums - Classified Ads Script Osclass
Osclass theme support => Stela Osclass Theme => Topic started by: unlimit 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-->
-
SEE TUTORIAL
https://techubber.blogspot.com/2016/05/how-to-add-facebook-comments-in-osclass-theme.html
-
<?php echo osc_item_url(); ?>
-
Superb
Working 100%
Thanks
-
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