DarthCoder
DarthCoder

Reputation: 354

Facebook search be email fails

I have a search to make based on the email that is publicly available. The problem is that it gives

{"error": {
"message": "(#200) Must have a valid access_token to access this endpoint", 
"type": "OAuthException", 
"code": 200

} }

but with another older app .. i get the results

{"data": [
{
  "name": "<Privacy>", 
  "id": "<Privacy>"
}], "paging": {
"next": "https://graph.facebook.com/search?q=<email>&type=user&limit=25&offset=25&__after_id=1131330642"

} }

i used the following query both the times

http://graph.facebook.com/search?type=user&q=<email>&Access_Token=<Token>

Upvotes: 0

Views: 1622

Answers (2)

andyrandy
andyrandy

Reputation: 74004

You cannot search for Emails (anymore), you even need a specific additional permission to read the Email of your own user, Email is kind of private usually. The Search Type you are using is "user", so you can only search for user names.

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

Upvotes: 0

Danielg
Danielg

Reputation: 26

There's a bug for apps that enabled "July 2013 Breaking Changes" which describes this exact problem... I personally had this issue. Just disable "July 2013 breaking changes" in your app settings and hope that this will be fixed before July 10th when the breaking changes apply to all facebook apps.

Check out: https://developers.facebook.com/bugs/335452696581712?browse=search_5187796ecdd086833270863

Upvotes: 1

Related Questions