Skip to content

Instantly share code, notes, and snippets.

@kitsunde
Created January 11, 2013 11:31
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 kitsunde/4510063 to your computer and use it in GitHub Desktop.
Save kitsunde/4510063 to your computer and use it in GitHub Desktop.
<script>
FB.getLoginStatus(function(response){
if (response.status !== 'connected') { // User is not authed in.
top.location.href='https://www.facebook.com/dialog/oauth?'
+ 'client_id=522323317786421'
+ '&scope=publish_actions'
+ '&redirect_uri=https%3A%2F%2Fapps.facebook.com%2Feconavi%2Fredirect.php'
+ '&state=93300ac5f310956db957a99869ec8fab';
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment