Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 738
irobson Avatar asked Jan 15 '15 15:01

irobson


People also ask

What data can I get from Facebook Graph API?

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.

How does Facebook graph work?

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.


1 Answers

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

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

like image 157
andyrandy Avatar answered Oct 27 '22 10:10

andyrandy