SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2010
    Location
    Bangladesh
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post Facebook share link

    Hello,

    I want to include facebook share button in the website and i already done it. But my problem is when i click share link it doesn't share the link in facebook. Is there anyone can solve this problem?

    Thanks,
    Rima

  2. #2
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    6,174
    Mentioned
    264 Post(s)
    Tagged
    5 Thread(s)
    How did you set up the button? From this page?

  3. #3
    SitePoint Enthusiast
    Join Date
    Oct 2010
    Location
    Bangladesh
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by TechnoBear View Post
    How did you set up the button? From this page?
    Yes i have set up using above link

    Thanks,
    Rima.

  4. #4
    SitePoint Member
    Join Date
    Dec 2013
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check Facebook API and sharing code which you are using. If you do not get any error please post your code here.

  5. #5
    SitePoint Enthusiast
    Join Date
    Oct 2010
    Location
    Bangladesh
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post

    Quote Originally Posted by fashionsappeal View Post
    Check Facebook API and sharing code which you are using. If you do not get any error please post your code here.
    After body tag i put below 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&version=v2.0";
    fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

    Then where i want to show facebook share there i put below code:

    <div class="fb-share-button" data-href="myweblink" data-type="button_count"></div>

    Thanks,
    Rima.

  6. #6
    SitePoint Member johnymilton001's Avatar
    Join Date
    May 2014
    Location
    india
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i Think its batter you got Facebook sharing code though "Share Button - Facebook Developers" and than you may put it in new widget and than must remove your catch. I hope it will be working.

  7. #7
    SitePoint Mentor Wayne Liew's Avatar
    Join Date
    Dec 2007
    Location
    Malaysia
    Posts
    247
    Mentioned
    38 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Rima_dhk View Post
    Hello,

    I want to include facebook share button in the website and i already done it. But my problem is when i click share link it doesn't share the link in facebook. Is there anyone can solve this problem?

    Thanks,
    Rima
    Hi Rima, what do you mean by it doesn't share? Are you saying that nothing happened even after you clicked on the button? Is there an error message? It will be great if you can show a screenshot of the error or link to a page which you have the share button implemented.

  8. #8
    SitePoint Member
    Join Date
    Jun 2014
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can use Add this.. search on Google. It's so useful!

  9. #9
    SitePoint Member
    Join Date
    Jul 2014
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just delete the code and retry may be your problem resolved.

  10. #10
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,156
    Mentioned
    190 Post(s)
    Tagged
    2 Thread(s)
    Thanks everyone.

    Rima_dhk hasn't returned in a couple of months so they must have solved the problem and moved on.

    Thread Closed


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •