Ad

Facebook Graph API Prevents From Accessing Data Due To Non Active Account - Android

I am using Graph API of Facebook in Android Studio to pull status from a public facebook page but Graph Request kept responding in a Null Pointer Exception. Debugging led to this message that 'Access to this data is temporarily disabled for non-active accounts due to changes we are making 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 output:

03-25 15:48:49.867 17225-17225/com.example.daroodar.qbwirelessapp E/Error: Error in response: (#200) Access to this data is temporarily disabled for non-active accounts due to changes we are making to the Facebook Platform

What does this mean?

Ad

Answer

Seems your application is not active now. Check application status in FB developers console. Possible you'll need to start new app review (check App review tab in FB console).

Also check if your application permissions are allowed by FB Platform Policy.

Ad
source: stackoverflow.com
Ad