我已将facebook分享按钮添加到我的应用程序中,并在页面上正确显示。我使用了以下代码: https://developers.facebook.com/docs/plugins/share-button/
当我点击按钮时会弹出一个包含正确内容的弹出窗口,我可以点击"发布到Facebook"
当我这样做时,该项目完全出现在我的Feed中,但即使隐私设置正确,也没有人能看到它。
任何想法......?
<html>
<head>
<title>Your Website Title</title>
<!-- You can use Open Graph tags to customize link previews.
Learn more: https://developers.facebook.com/docs/sharing/webmasters -->
<meta property="og:url" content="http://www.your-domain.com/your-page.html" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Your Website Title" />
<meta property="og:description" content="Your description" />
<meta property="og:image" content="http://www.your-domain.com/path/image.jpg" />
</head>
<body>
<!-- Load Facebook SDK for JavaScript -->
<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/sdk.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<!-- Your share button code -->
<div class="fb-share-button"
data-href="http://www.your-domain.com/your-page.html"
data-layout="button_count">
</div>
</body>
</html>
答案 0 :(得分:1)
需要考虑的事项:
确保您的朋友实际上转到您的用户个人资料以查看发布信息,但可能不会显示在他们的信息流中。