I cannot make API requests with the Android Facebook SDK or even get the user from the login callback - it always returns null.
In particular, using newMeRequest, the following error message appears:
{ "error": { "message": "API calls from the server require an appsecret_proof argument", "type": "GraphMethodException", "code": 100 } }
In fact, this seems pretty obvious, because the flag is set to true in the options of the Facebook application. However, I know that for mobile sdks it is possible to make API requests without a secret. However, if I try to use the access token from currentSession in the Graph Graph API debugger, the answer will be the same as above.
I donβt know if this is related to the new Android Android SDK, but my code is basically the same as in the examples. The login goes well and I get a session token, but I cannot make any API requests ...
loginButton.setUserInfoChangedCallback(new LoginButton.UserInfoChangedCallback() { @Override public void onUserInfoFetched(GraphUser user) { graphUser = user; } }); Request.newMeRequest(currentSession, new Request.GraphUserCallback() { @Override public void onCompleted(GraphUser user, Response response) { } } }).executeAsync();
android facebook facebook-graph-api android facebook
dwbrito
source share