First, thank you for the great library, it has helped me a lot.
I have a java app that I want the user to be able to post to my facebook pages.
Question 1: I can successfully connect and post to my FB page using an access token.But when I try to use my app token, I get the following error:
[Sat Jan 25 13:17:18 CST 2014]Request:
[Sat Jan 25 13:17:18 CST 2014]Accept-Encoding: gzip
[Sat Jan 25 13:17:18 CST 2014]Post Params: message=Hello%20World%20from%20Facebook4J.&access_token=6...U
[Sat Jan 25 13:17:19 CST 2014]Response:
[Sat Jan 25 13:17:19 CST 2014]HTTP/1.1 400 Bad Request
[Sat Jan 25 13:17:19 CST 2014]X-FB-Debug: /dzL/xNB/x3Vj0IQgoJvPzL+ykpjxCoTkOEttumIUyQ=
[Sat Jan 25 13:17:19 CST 2014]WWW-Authenticate: OAuth "Facebook Platform" "invalid_request" "An active access token must be used to query information about the current user."
[Sat Jan 25 13:17:19 CST 2014]Date: Sat, 25 Jan 2014 19:17:19 GMT
[Sat Jan 25 13:17:19 CST 2014]Access-Control-Allow-Origin: *
[Sat Jan 25 13:17:19 CST 2014]Content-Length: 140
[Sat Jan 25 13:17:19 CST 2014]Expires: Sat, 01 Jan 2000 00:00:00 GMT
[Sat Jan 25 13:17:19 CST 2014]Connection: keep-alive
[Sat Jan 25 13:17:19 CST 2014]X-FB-Rev: 1095454
[Sat Jan 25 13:17:19 CST 2014]Content-Type: application/json; charset=UTF-8
[Sat Jan 25 13:17:19 CST 2014]Pragma: no-cache
[Sat Jan 25 13:17:19 CST 2014]Cache-Control: no-store
[Sat Jan 25 13:17:19 CST 2014]{"error":{"message":"An active access token must be used to query information about the current user.","type":"OAuthException","code":2500}}
FacebookException{statusCode=400, response=HttpResponse{statusCode=400, responseAsString='{"error":{"message":"An active access token must be used to query information about the current user.","type":"OAuthException","code":2500}}
', is=sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@28cb43a9, streamConsumed=true}, errorType='OAuthException', errorMessage='An active access token must be used to query information about the current user.', errorCode=2500, errorSubcode=-1}
at facebook4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:189)
I want to use a app token so that it is permanent. What am I doing wrong?
Question 2: I can only post to my default FB page. How to I specify one of my other pages to post to? I think I need to find the page_ID in graph explorer, but once I find it how do I use it in facebook4j?