Search code examples
facebookfacebook-graph-apispring-socialspring-social-facebook

Does the Facebook Graph API allow to search by e-mail?


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.


Solution

  • No, you can only search by name, but not by email:

    https://developers.facebook.com/docs/graph-api/using-graph-api/v2.2#search