I'm having some trouble with the facebook SDK on Android. I would like to search a user by his phone number. For example when I'm on my account on my computer, if I put my friend's phone number in the search field, it gives me his profil, I would like to do exactly the same but programmatically speaking. I thought it would have worked with this :
/search?q=0123456789&type=user
But it gives me this error (even if I granted all the permissions to my access token) :
"message": "(#200) Must have a valid access_token to access this endpoint",
"type": "OAuthException",
"code": 200
Does anyone knows how to achieve this goal ? Thank you!