Skip to content

Instantly share code, notes, and snippets.

@harshamv
Forked from arush/FB like webhook
Created March 20, 2014 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harshamv/9658656 to your computer and use it in GitHub Desktop.
Save harshamv/9658656 to your computer and use it in GitHub Desktop.
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('sc​ript');
e.async = true;
e.src = document.location.protocol​ + '//connect.facebook.net/en​_US/all.js';
document.getElementById('f​b-root').appendChild(e);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment