I am using the Facebook Graph API in Android Studio to pull status from a public facebook page, but Graph Request continued to respond with a Null Pointer Exception. Debugging led to this message: "Access to this data is temporarily disabled for inactive accounts due to changes made by us to the Facebook platform."
AccessToken token= new AccessToken(getString(R.string.accessToken),
getString(R.string.facebook_app_id),
getString(R.string.userID),null,null,null,null,null );
GraphRequest req= GraphRequest.newGraphPathRequest(token, "453355835083862",
new GraphRequest.Callback() {
@Override
public void onCompleted(GraphResponse response) {
FacebookRequestError error = response.getError();
Log.e("Error","Error in response: " + error.getErrorMessage());
Log.e("Output", response.getJSONObject().toString());
}
});
GraphRequest.executeBatchAsync(req);
which gives the result:
03-25 15:48:49.867 17225-17225/com.example.daroodar.qbwirelessapp E/Error: Error in response: (
What does it mean?
source
share