I'm trying to search by e-mail using the Facebook Graph API but I always got the error result:
request: .../[email protected]&type=user result:
{
"error": {
"message": "(#200) Must have a valid access_token to access this endpoint",
"type": "OAuthException",
"code": 200
}
}
I´m using an access token and this one is a user's (mine) valid access token. If I do a search for any thing else (like a name) it works fine.
The Graph API is the primary way to get data into and out of the Facebook platform. It's an HTTP-based API that apps can use to programmatically query data, post new stories, manage ads, upload photos, and perform a wide variety of other tasks.
Definition: Graph search is Facebook's inquiry engine that lets users enter natural-language search queries to find users who match a set of criteria. Searches can include criteria such as likes, shares, name, location, employer and more.
No, you can only search by name, but not by email:
https://developers.facebook.com/docs/graph-api/using-graph-api/v2.2#search
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With