H
H
hr_lolka2017-04-25 17:39:19
Facebook
hr_lolka, 2017-04-25 17:39:19

Facebook api, people search, what am I doing wrong?

I get acces_token like this:

https://graph.facebook.com/oauth/access_token?grant_type=client_credentials&client_id=ID&client_secret=SECRET&scope=offline_access,read_stream

then I make a request:
https://graph.facebook.com/search?q=jashwant&type=user&access_token=Токен_полученный_с_прошлого_запроса

in response I get:
{
   "error": {
      "message": "A user access token is required to request this resource.",
      "type": "OAuthException",
      "code": 102,
      "fbtrace_id": "Gd9+EC/P4Y6"
   }
}

What am I doing wrong ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hr_lolka, 2017-04-25
@hr_lolka

solved the problem, you need to use user_token

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question