Disable Facebook Like Button "Publish to Facebook" popup

Possible duplicate:
Facebook Like Button - how do I disable a comment pops up?

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

<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 on it, I need to refresh the page. I saw various posts on how to do this using the edge.create event, and it works great.

But my problem is when they click the “Like” button, it shows the “Post to Facebook” pop-up message.

facebook like popup

So I really need to refresh my page after closing the popup. Is it possible?

An alternative acceptable solution would be to completely disable the popup so that when you click the "Like Popup" button, it doesn’t appear.

thanks

+4
source share
2 answers

You can avoid displaying this popup using the iframe version of Like social social plugin .

When will the user have the opportunity to add a comment to a similar one?
If you use the XFBML version of the Like button, users will always have the opportunity to add a comment. If you use the version of the iframe button, users will be able to comment if you use a standard layout with a width of at least 400 pixels. If users add a comment, a story posted on Facebook will receive more attention.

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

+7
source

Iframe it or just have a similar box in a hard div with overflow: hidden.

 div#like_box { height: 20px; overflow: hidden; padding: 0; } 

If you can not delete it; hide! :)

+4
source

Source: https://habr.com/ru/post/1402919/


All Articles