我的应用程序使用facebook登录按钮的facebook-android-sdk。 这是工作,直到最后的日子,现在的图形要求在页面的饲料图形请求错误500
Bundle parameters = new Bundle();
parameters.putString("fields", "id,icon,created_time,name,caption,description,message,link,full_picture,shares");
parameters.putString("limit", "50");
parameters.putString("locale", mLocale);
String pathPosts = path + "/posts";
GraphRequest request = new GraphRequest(
AccessToken.getCurrentAccessToken(), pathPosts, parameters, HttpMethod.GET,
new GraphRequest.Callback() {
@Override
public void onCompleted(
GraphResponse response) {
mResponse = response;
}
});
request.executeAndWait();
我得到的OAuthException错误
{Response: responseCode: 500, graphObject: null, error: {HttpStatus: 500, errorCode: 1, errorType: OAuthException, errorMessage: An unknown error has occurred.}}
UPDATE 发现,限比33,等于降低它无误地运行
parameters.putString("limit", "33");
对于其他页面的Feed,限制必须低于等于7没有错误
工作parameters.putString("limit", "7");
问:现在 什么是在页面的饲料的图形API请求的限制规则?
检查,如果您有任何错误的构造函数,或忘记包含权限。也很有可能登录状态或访问令牌已过期,已被撤销或无效。获取新的访问令牌。 – PN10
您使用的是什么版本的GraphAPI? –
@ PN10令牌是有效的,适用于应用程序和Graph Api Explorer。我的问题是,当限制变量值更大时,我会收到错误。 – GPack