Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Comments on webpage

Posted on 2013-05-21
1
Medium Priority
?
222 Views
Last Modified: 2013-06-17
Hi,

I'd like to include the comments from our facebook page on our website page. I tried to do this by going to this page and just changing the url:

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

But that doesn't seem to work since nothing comes up on my webpage even though I've added both the javascript and the html tag.

In the image below you can see what comment feed I would to add too the webpage and the address of the facebook page.

Facebook comments
Thanks for help!

Peter
0
Comment
Question by:peternordberg
1 Comment
 
LVL 15

Accepted Solution

by:
Jagadishwor Dulal earned 1500 total points
ID: 39184421
Did you add script in your header section like:

<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_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

Open in new window


And for the Comment add the html iframe:

<div class="fb-comments" data-href="http://example.com" data-width="470" data-num-posts="10"></div>

Open in new window

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, you will learn how to create custom audiences using your own email lists. You can use this custom audience as your target audience for advertising on Facebook. This allows you to advertise to your existing audience. Once you've crea…
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question