I’m interested in using the facebook graph api to pass an email and obtain a person’s name… Something like:
https://graph.facebook.com/search?q=mark@facebook.com&type=user&access_token=2227470867|2.havcPA9QlMy6tLY1FXqeJA__.3600.1304301600.0-502023190|fejBKRrESzcndWh2rM0ZtyFMGeE
Which returns:
{
"data": [
{
"name": "Mark Zuckerberg",
"id": "4"
}
]
}
My question is how do I get an access_token? I’m not building an app for user’s to approve more interested in hitting the API to find a person’s name.
Thoughts on how I can get an access token?
Thanks
You will need to create a Facebook application using the Developer app. You can then get an App authentication token (see the App Login section of http://developers.facebook.com/docs/authentication/) and that should let you hit the Graph API.