JS: Detect when user clicks facebook button like button

Is it possible to detect when someone clicks the “how” button, and before such an action really happens, the same thing as the onSubmit JS event, it detects when the user submits the form before it is even submitted , which makes it possible to process / run the code before it does it.

Usage: I am trying to implement a Web 2.0 page where all the actions take place on one page, so depending on the user's actions the content of the page will change "But not meta"

So my question is: can I determine when the user "clicks" on a similar button so that I can "load" the meta of the current page before such an action really happens ?!

PS, I know that it is not very important to download the meta, since it is less than 1 KB and will not have any effect, however, I am just wondering if there is a way / to work to do this.

Thank.

+5
source share
1 answer

You can subscribe to an event that will notify you when the user likes something, but it will fire after the action. This is documented: http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/

:

FB.Event.subscribe('edge.create', function(response) { alert('You liked the URL: ' + response); /* check the response here to see if it your URL */ });

, , ? ? Facebook scrapes 24 , . , , Facebook, / , .

+6

All Articles