Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Facebook Like button's "Post to Facebook" popup [duplicate]

Possible Duplicate:
Facebook Like Button - how to disable Comment pop up?

I have a Facebook Like button on my site like so:

<fb:like href="http://www.facebook.com/myurl" colorscheme="light" send="false" width="450" show_faces="false" font="" ref="top_like_button"></fb:like>

When the user clicks it, I need to refresh the page. I have seen various posts on how to do this using the 'edge.create' event, and it works fine.

But my problem is when they click Like, it shows a popup saying "Post to Facebook".

facebook like popup

So I really need to refresh my page after they have closed the popup. Is this possible?

An alternative acceptable solution would be to disable the popup completely, so that when they click Like the popup doesn't appear.

Thanks

like image 640
Matt Frear Avatar asked Dec 21 '22 00:12

Matt Frear


1 Answers

You can avoid this flyout being displayed by using iframe version of Like Button social plugin.

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.

Beware, this will make impossible to subscribe to edge.create/egde.remove events.

like image 126
Juicy Scripter Avatar answered May 07 '23 01:05

Juicy Scripter