Choice to Post to Facebook After Clicking Like Button - facebook

I noticed at 9gag.com/fast that if you click the Like button, a small option opens up to share that link on the user's wall.
I believe this is not a default option because I have implemented the Like button on my site and it doesn't work that way.
How to get this functionality...

Use FB.Event.subscribe('edge.create') as described here with the JS SDK to catch the event when a user likes your page.

You don't need to subscribe to the like event. The behavior you describe in that link is default. Go to the link generator here: https://developers.facebook.com/docs/reference/plugins/like/ to play around with it. Any time you click on like a little comment box will popup.

Related

Is it possible to prepoulate the comments box while posting to facebook from an application?

I have added the facebook recommend/like button in my application. All I want is when user click on the recommend/like button then the comments box should be pre-poulated with some default text.
Is it possible to do this? if so how can i achieve that?
If you're talking about a facebook comments box: its not possible. Checkout this: Facebook Like Button with prepopulated Comment
Otherwise, if its a custom comment box, this will need to be done via javascript SDK. Check out the documentation for subscribing to like events on a page here.

specific fb page will not work with like button

I've had this like button/box setup for this specific page for some time. But now it;s stopped working:
Using code generated (for iframe) on this page:
http://developers.facebook.com/docs/reference/plugins/like/
to display this fb page:
http://www.facebook.com/JohnPurkiss
does not display/work. If I amend the like button url in the iframe to another fb page, it does work. I'm not tryinig to use a button/plugin that requires an app. Just a plain 'ol simple button. But it appears to me there is an issue with this specific fb page (johnpurkiss one above)
Any advice/help greatly appreciated.
The problem here is that the "page" you linked to is in actual fact a personal user.
You can not "like" a user in the same way that
you can not add a page as a friend...
or "poke" an event...
or subscribe to a photo...
You'll gave to provide an actual page to be liked.
As you can see from the screenshot below taken from the link you provided, there is no like button to be found.
Only an "Add Friend" and "Subscribe" button. I'm not sure if converting your profile into a page is the way you want to go, but it is possible. You can learn how at this link.

Facebook Like button - only 1 line whhen no comment

Im using Facebook's like button plugin on my own website product pages, also using opengraph tags
http://developers.facebook.com/docs/reference/plugins/like/
Everything seems to work fine, the problem is when people 'like' a product, the comment box shows up but if they leave it empty only single line is posted on their feed like:
Jon Doe has liked "title here".
But when they write that comment when they click Like or even post the the link manually all the image,text,description information is correctly displayed.
Anyone knows how to fix this?
Well, that’s the basic difference between a like and a share. Since Facebook has merged these to functionalities into one social plugin, it’s up to the user which action he takes.
The old share button has been deprecated, so not much use in implementing it now, because even if it’s still possible(?) it will stop working eventually.
If you want shares instead of likes, your one alternative IMHO is implementing the Feed Dialog on your site, triggered by a click on a button of you own making.

Is there any way to stop the comment dialog from showing up after liking a page using the facebook like social plugin?

I have a website that utilizes the facebook like button social plugin. It's part of a small toolbar that also has a tweet button and other similar things. After clicking the button, however, facebook automatically displays a menu to let you add comments to the post. This really throws off the css in my site and makes things look really bad. I really just want people to be able to click the recommend button, and have it end there. I don't want any extra elements to be brought into the HTML code after the action is taken.
Does anybody know of any way to stop all the extra stuff from being displayed?
From the FAQ at the bottom of the like button social plugin reference:
When will users have the option to add a comment to the like?
If you are using the XFBML version of the Like button, users will
always have the option to add a comment. If you are using the Iframe
version of the button, users will have the option to comments if you
are using the 'standard' layout with a width of at least 400 pixels.
If users do add a comment, the story published back to Facebook is
given more prominence.
So one option would be to use the iframe instead of the XFBML version, and make sure the width is less than 400px.

Populate a sharer link for facebook

Im using this URL to share my website without having to add any facebook code:
http://www.facebook.com/sharer/sharer.php?u=http://yahoo.com
And I was wondering, is there any way to populate the description field, like another URL parameter?
EDIT: Seems like sharer its deprecated in favour of the like button, but i dont want to use the ugly look of the like button. is there a way to replace it? Im trying to achieve an effect like this in twitter:
<a href='http://twitter.com/home?status=My_message' <img src='mytwittericon.png' /></a>"
The facebook "sharer" has been deprecated and is no longer supported as it states here:
The Share button has been deprecated in favor of the Like button, and
will no longer be supported. Please use the Like button whenever
possible to drive maximum traffic to your apps.
And here:
What happened to the old Share button?
We deprecated the Share Button when we launched the Like button,
because the Like button improves clickthrough rates by allowing users
to connect with one click, and by allowing them to see which of their
friends have already connected.
I actually find Sharer more useful than Like button.
Try this code:
<img src="http://yourdefaultsharebutton.png">
Or just set proper OG tags.