3 Replies - 541 Views - Last Post: 10 August 2014 - 06:15 PM

#1 ognjengt  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 29-July 14

Facebook share button wont work

Posted 10 August 2014 - 02:16 PM

I don't know why but the code for facebook share button wont work for me.. I've searched everything and I just can't seem to find the right answer why it doesn't work. Here is the code.

<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&appId=121282264642550&version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>


Just as it said right after the body tag.. and then I have this reference in the code a little bit further.

<div class="fb-share-button" data-href="https://developers.facebook.com/docs/plugins/" data-width="40"></div>


Can somebody help me out?

Is This A Good Question/Topic? 0
  • +

Replies To: Facebook share button wont work

#2 Y0unix  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 14-October 08

Re: Facebook share button wont work

Posted 10 August 2014 - 04:30 PM

Zoinks!

DO you NEED to use that share button?

You can just
  <a href="http://www.facebook.com/sharer.php?u=http://[b]Your link/page you want to share[/b]" target="_blank">[b]do this[/b]</a>


Right? maybe make your own button and use this no? Anyways thats how I did it on my site, give it a try.
Was This Post Helpful? 0
  • +
  • -

#3 ognjengt  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 29-July 14

Re: Facebook share button wont work

Posted 10 August 2014 - 05:01 PM

Hmm, no I am getting just the link to click, not the button, I don't se why it doesn't work, Its from developers website...
Was This Post Helpful? 0
  • +
  • -

#4 brep  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 23
  • View blog
  • Posts: 169
  • Joined: 26-August 11

Re: Facebook share button wont work

Posted 10 August 2014 - 06:15 PM

Do you have any css files linked to your webpage?

And do you have any styling for the class fb-share-button?

Edit: was this straight from here?

This post has been edited by brep: 10 August 2014 - 06:16 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1