Dercni
Dercni

Reputation: 1224

Facebook share button not sharing

I have added a facebook share button to my app and it appears correctly o the page. I have used the following code: https://developers.facebook.com/docs/plugins/share-button/

When I click the button it a popup appears with the correct content and I can click "Post to facebook"

When I do the item appears in my feed perfectly but nobody else can see it even though the privacy settings are correct.

Any ideas... ?

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

Upvotes: 0

Views: 86

Answers (1)

andyrandy
andyrandy

Reputation: 73984

Things to consider:

  • Is the privacy set to "friends" or even "public" in the share popup?
  • Is your App public? Set it public in the "App Review" section.

Make sure your friends actually go to your user profile to check out the posting, it may just not show up in their stream.

Upvotes: 1

Related Questions