android - "An access token is required to request this resource" - Facebook graph API -


i'm trying use facebook graph api in android application retrieve last posts facebook page. have set up, can login account , make "/me" request user's basic info. when try make request:

new request(session.getactivesession(),     "pokernewsbrazil?fields=posts&fref=ts/posts",     null,     httpmethod.get,     new request.callback() {             public void oncompleted(response response) {               /* handle result */              }         }     ).executeasync(); 

i receive following error: "an access token required request resource". access token exists , valid, because if use access token same session in graph api explorer receive succesfull response containing posts page. getting wrong?

change httpmethod.get httpmethod.post.

this error arises because sdk posts access token behind scenes, while api looking in parameter.

for reason using httpmethod.get , appending access token url string causes various malformed access token errors.

i encountered various errors when batching requests. if encounter such errors, try executing request standalone , debug there.

the facebook sdk iterating relatively yet documentation lacking , not date. stick it.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -