Facebook 图 API 由于帐户不活跃而无法访问数据 - Android
Facebook graph API prevents from accessing data due to non active account - Android
我在 Android Studio 中使用 Facebook 的 Graph API 从 public facebook 页面中提取状态,但 Graph 请求一直在空指针异常中响应。
调试导致此消息 '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);
给出输出:
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
这是什么意思?
您的应用程序现在似乎未激活。在 FB developers console. Possible you'll need to start new app review (check App review tab in FB console).
查看申请状态
还要检查 FB Platform Policy 是否允许您的应用程序权限。
我在 Android Studio 中使用 Facebook 的 Graph API 从 public facebook 页面中提取状态,但 Graph 请求一直在空指针异常中响应。 调试导致此消息 '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);
给出输出:
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
这是什么意思?
您的应用程序现在似乎未激活。在 FB developers console. Possible you'll need to start new app review (check App review tab in FB console).
查看申请状态还要检查 FB Platform Policy 是否允许您的应用程序权限。