Reputation: 11782
Is there any way with Graph api of Facebook
using which I can pass an email parameter and I can get at least Facebook profile page and Facebook Id of the user?
E.g If i have an email [email protected]
and I want to search the profile page registered on this email and its Facebook ID.
I have tried this sort of search but It didn't work
https://graph.facebook.com/search?q=email&type=post
Upvotes: 0
Views: 1753
Reputation: 13339
If you're an app and you have the right permissions, you can get the users email address with
me?fields=name,email
(try with the API explorer here)
It's not possible to get the user's friend's email address or find email addresses through the search api.
Upvotes: 1
Reputation: 22243
type=post
is for post search, you should try using
https://graph.facebook.com/search?q=email_to_search&type=user
Which will search into users instead of posts
Upvotes: 0
Reputation: 8753
I dont see email on the API, it may not be allowed?
https://developers.facebook.com/docs/reference/api/search/#types
Upvotes: 0