#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2011
    Posts
    51
    Rep Power
    4

    Facebook share button, NOT like button


    I have a little arcade website as a project together with my best friend and we would like to add the Facebook Share function to the game-pages so that if the visitor likes the game, they can share it on facebook.

    The only thing I could find is the Like button, and that's not what I want, I want something exactly like Youtube has where you can share a video you like on your wall.

    Any help on how to do this?
  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,316
    Rep Power
    7171
    I'm pretty sure that Facebook deprecated the Share button in favor of the Like button, and removed all of their developer documentation related to it. Dumb, because the Like button is not at all functionally equivalent to the Share button, but Facebook has never been developer friendly.

    It's still possible to find the code for adding a Share button if you Google around for it. They do still work for the time being.

    You might also want to check out something like ShareThis which takes care of most of the hassle of setting up those buttons.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2011
    Location
    Suburb of Minneapolis, MN
    Posts
    5
    Rep Power
    0
    What I found would require you to find a "Share +" image and save it, then using that image, create a link that opens in a new page resized to a certain amount that passes along the parameters like this: facebook.com/sharer.php?u=http://google.com where google.com is the site/link you want people to share on their wall.


    Example:

    Code:
    <a href="http://www.google.com" target="new"><img src="sharebutton.jpg"></a>
    .... or something along those lines. That should at least get the job done in regards to what you want.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    152
    Rep Power
    12
    Yeah, the above should work... you don't even need an image if you want, you can just use text but I'm guessing you want that Share button easily visible. You can set the size of the new window too like some sites do, or just have it open a new window and let it do it's own thing.

IMN logo majestic logo threadwatch logo seochat tools logo