Advertisement:

Author Topic: Putting of facebook comments on user profile page  (Read 79 times)

moinuddin

  • Newbie
  • *
  • Posts: 15
Putting of facebook comments on user profile page
« on: June 12, 2019, 11:56:09 am »
hi all,

i want to put a fb comment facility on a user profile page on my site ..so that users who have dealt with that seller can post their experiences ,

i am using the below code :


<!-- 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-->


but unfortunately its not working ..

i have put this code above latest listing title in userprofilepage.php..

can anyone help me out??

thanks in advance

BritWeb

  • Hero Member
  • *****
  • Posts: 707
  • If it ain't broke, don't fix it.
Re: Putting of facebook comments on user profile page
« Reply #1 on: June 12, 2019, 12:28:51 pm »
I am sure you did refer to 'facebook for developers' site, if not check out the following

https://developers.facebook.com/docs/plugins/comments/
https://www.webascender.com/blog/add-facebook-comments-website/

You can also watch some video. This is a good idea and I am going to try on my sites too.

Cheers!

moinuddin

  • Newbie
  • *
  • Posts: 15
Re: Putting of facebook comments on user profile page
« Reply #2 on: June 12, 2019, 02:16:52 pm »
Hi britweb,

I have seen the video there was a jdk file which was missing in my website ..that only thing is that where exactly we have to put in in header file ??

BritWeb

  • Hero Member
  • *****
  • Posts: 707
  • If it ain't broke, don't fix it.
Re: Putting of facebook comments on user profile page
« Reply #3 on: June 12, 2019, 03:35:16 pm »
Hi britweb,

I have seen the video there was a jdk file which was missing in my website ..that only thing is that where exactly we have to put in in header file ??

Please see the attached pic, the SDK (javascript file) need to be placed after the opening body tag and I usually put it above </body> tag on the 'footer.php'

Hope this helps.

moinuddin

  • Newbie
  • *
  • Posts: 15
Re: Putting of facebook comments on user profile page
« Reply #4 on: June 12, 2019, 08:59:12 pm »
I have successfully implemented it and its working , but its showing on all users profile page and not a particular page of user on. It was posted.