Skip to content

Instantly share code, notes, and snippets.

@meeDamian
Created February 5, 2013 11:05
Show Gist options
  • Save meeDamian/4713767 to your computer and use it in GitHub Desktop.
Save meeDamian/4713767 to your computer and use it in GitHub Desktop.
window.fbAsyncInit = function() {
FB.init({
appId : 'APP_ID',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
FB.Event.subscribe("xfbml.render", function() { // przy wyrenderowaniu
FB.Event.subscribe("edge.create", function(targetUrl) { // przypisz click
// tu napisz co ma się wykonać, np:
window.location.reload();
});
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment