Facebook API prevents data access due to inactive account - Android

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:  (#200) Access to this data is temporarily disabled for non-active accounts due to changes we are making to the Facebook Platform

What does it mean?

+4
source share
1 answer

, . FB. , ( FB).

, FB.

0

Source: https://habr.com/ru/post/1695301/


All Articles