New Facebook SDK and OAuthException in Graphpath requests

后端 未结 1 1630
刺人心
刺人心 2021-01-01 06:59

I saw a buch of answers regarding this problem with the older versions of the SDK, and I can\'t seem figure out why this is happening to me.

if I use this code, it

相关标签:
1条回答
  • 2021-01-01 07:38

    Request req = new Request(session, "/me/friends?fields=id,name,installed,picture",null, HttpMethod.GET, .......

    Don't put the entire path in the graph path parameter, everything after the ? should be in the params parameter that you set to null. Try this instead:

    Bundle params = new Bundle();
    params.putString("fields", "id,name,installed,picture");
    Request req = new Request(session, "me/friends", params, HttpMethod.GET, .......
    

    That will do the trick.

    0 讨论(0)
提交回复
热议问题