我想在我的网站上显示照片(在Facebook上发布)及其评论..
这里是facebook图片的图片 https://www.facebook.com/photo.php?fbid=642843975813899
这是我的代码......
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<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";
fjs.parentNode.insertBefore(js, fjs);
} (document, 'script', 'facebook-jssdk'));</script>
<form id="form1" runat="server">
<div>
<div class="fb-comments" data-href="https://www.facebook.com/photo.php?fbid=642843975813899" data-num-posts="1" data-width="auto"></div>
</div>
</form>
但它没有显示任何评论.... 即使我从我的页面发表评论......它也会被发布但不会在Facebook上显示..