Created
August 15, 2011 16:39
-
-
Save arush/1147150 to your computer and use it in GitHub Desktop.
FB like webook / event subscribe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.fbAsyncInit = function () { | |
FB.init({ | |
appId: 'APPID', | |
Status: true, | |
Cookie: true, | |
Xfbml: true | |
}); | |
FB.Event.subscribe('edge.create', function (response) { | |
Alert("Hello World! URL Liked!"); | |
}); | |
}; | |
(Function() { | |
Var e = document.createElement('script'); | |
e.async = true; | |
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; | |
document.getElementById('fb-root').appendChild(e); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment