Created
October 3, 2012 14:00
-
-
Save mildfuzz/3827060 to your computer and use it in GitHub Desktop.
Fetch Test Facebook User
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
| 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