Skip to content

Instantly share code, notes, and snippets.

@joseadrian
Last active December 31, 2015 15:49
Show Gist options
  • Save joseadrian/8009255 to your computer and use it in GitHub Desktop.
Save joseadrian/8009255 to your computer and use it in GitHub Desktop.
Facebook Comments
<!--
This file is the Canvas URL
It's generated automatically
-->
<head>
<meta charset="UTF-8" />
<title>Title</title>
<meta property="fb:app_id" content="474221426024929" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Title"/>
<meta property="og:description" content="Description"/>
<meta property="og:url" content="http://apps.facebook.com/474221426024929/PAGEID/any-text-you-want"/>
<meta property="og:image" content="PATH_TO_IMAGE" />
</head>
<body>
A message
</body>
</html>
<html>
<body>
<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&appId=628819097177872";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-comments" data-href="http://apps.facebook.com/474221426024929/PAGEID/any-text-you-want" data-numposts="5" data-colorscheme="light"></div>
</body>
</html>

Preview Comments

Debug info

So... I should see the "Settings" link but I don't see it. And in the Comment Moderation Tool doesn't appear any comment.

preview

If you check the canvas_url.php file, you will see that the app_id is in its place as the docs says.

<meta property="fb:app_id" content="474221426024929" />

I have changed it to the next line but the same result... I can't moderate it

<meta property="fb:admins" content="578122090"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment