Skip to content

Instantly share code, notes, and snippets.

@mildfuzz
Created October 3, 2012 14:00
Show Gist options
  • Select an option

  • Save mildfuzz/3827060 to your computer and use it in GitHub Desktop.

Select an option

Save mildfuzz/3827060 to your computer and use it in GitHub Desktop.
Fetch Test Facebook User
var APP_ID = prompt("Input your App Id");
var APP_SECRET = prompt("Input your App Secret");
$.ajax({
url: "https://graph.facebook.com/oauth/access_token?client_id="+APP_ID+"&client_secret="+APP_SECRET+"&grant_type=client_credentials",
type: "GET",
success: function(data){
window.location = "https://graph.facebook.com/"+APP_ID+"/accounts/test-users?installed=false&locale=en_UK&permissions=read_stream&method=post&access_token="+data.replace('access_token=','');
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment