1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Facebook share button doesnt include content.

Discussion in 'PHP' started by d1spin, Apr 12, 2010.

  1. #1
    On my wordpress site I try to add the share button using this

    <a name="fb_share" type="button" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
    PHP:
    When I test the button it does not share the single post, just the main page of the blog. It also grabs the wrong image. At one point I had everything working but I broke it when I installed a facebook share plugin :mad:

    Also, if I go on my facebook profile and type in my domain it doesnt provide a description and content.

    Im sure these are very basic but Im having a lot of trouble and would appreciate some help :)
     
    d1spin, Apr 12, 2010 IP
  2. nimonogi

    nimonogi Active Member

    Messages:
    398
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    80
    #2
    Check out addthis.com
    Its the easiest way to place a share link and includes almost every social network available.
     
    nimonogi, Apr 12, 2010 IP
  3. d1spin

    d1spin Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Even if I use that it doesnt provide a description of the post. Is it possible that I am putting the share code in the wrong place? Do I need to edit some code somewhere else?
     
    d1spin, Apr 13, 2010 IP
  4. nimonogi

    nimonogi Active Member

    Messages:
    398
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    80
    #4
    If you are you putting the code in an iframe... probably this is the reason.
    Whats your url?
     
    nimonogi, Apr 13, 2010 IP
  5. d1spin

    d1spin Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I think the problem is something to do with my code. It doesnt matter if its facebooks share button or a plug in, it wont grab the content of the post. Any ideas :)
     
    d1spin, Apr 14, 2010 IP