August 30th, 2011, 12:56 PM
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?
August 30th, 2011, 09:33 PM
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.
September 6th, 2011, 10:48 PM
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.
.... or something along those lines. That should at least get the job done in regards to what you want.
<a href="http://www.google.com" target="new"><img src="sharebutton.jpg"></a>
September 6th, 2011, 11:05 PM
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.