Skip to content

Instantly share code, notes, and snippets.

@mmohiudd
Created November 1, 2012 18:18
Show Gist options
  • Save mmohiudd/3995508 to your computer and use it in GitHub Desktop.
Save mmohiudd/3995508 to your computer and use it in GitHub Desktop.
FB JS auth
function authorize(){
FB.login(function(response) {
if(response.authResponse) { // user authorized
// do something
} else { // not authorized
// do something
}
},{
scope: '{{fb_permissions}}'
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment