java - Getting OauthException using Restfb latest version 1.9.0 -
we using restfb latest version 1.9.0. after migrating latest version unable fetch posts using public search.
how make access token active.
> active access token must used query information
i getting following error while running code github
run-reader-examples: [java] * fetching single objects *30 mar, 2015 6:51:05 pm com.restfb.defaultwebrequestor execute [java] [java] fine: making request https://graph.facebook.com/me?access_token=517312558337191%7c5ohy9t3czico_tcek8odxkg5y08&format=json [java] 30 mar, 2015 6:51:09 pm com.restfb.defaultwebrequestor execute [java] fine: facebook responded http status code 400 , response body: {"error":{"message":"an active access token must used query information current user.","type":"oauthexception","code":2500}} [java] exception in thread "main" com.restfb.exception.facebookoauthexception: received facebook error response of type oauthexception: active access token must used query information current user. (code 2500, subcode null) [java] @ com.restfb.defaultfacebookclient$defaultgraphfacebookexceptionmapper.exceptionfortypeandmessage(defaultfacebookclient.java:1189) [java] @ com.restfb.defaultfacebookclient.throwfacebookresponsestatusexceptionifnecessary(defaultfacebookclient.java:1104) [java] @ com.restfb.defaultfacebookclient.makerequestandprocessresponse(defaultfacebookclient.java:1038) [java] @ com.restfb.defaultfacebookclient.makerequest(defaultfacebookclient.java:951) [java] @ com.restfb.defaultfacebookclient.makerequest(defaultfacebookclient.java:914) [java] @ com.restfb.defaultfacebookclient.fetchobject(defaultfacebookclient.java:415) [java] @ com.restfb.example.graphreaderexample.fetchobject(graphreaderexample.java:101) [java] @ com.restfb.example.graphreaderexample.runeverything(graphreaderexample.java:83) [java] @ com.restfb.example.graphreaderexample.main(graphreaderexample.java:75) [java] java result: 1 build successful
you cannot information /me
endpoint using app access token. need user or page access token.
Comments
Post a Comment