我在登录Facebook时收到错误。
以前它工作正常,但现在我收到此错误。请帮助我
LoginManager.getInstance().registerCallback(callbackManager,
new FacebookCallback<LoginResult>() {
@Override
public void onSuccess(final LoginResult loginResult) {
GraphRequest request = GraphRequest.newMeRequest(
loginResult.getAccessToken(),
new GraphRequest.GraphJSONObjectCallback() {
@Override
public void onCompleted(
JSONObject object,
GraphResponse response) {
// here i am getting error App secret proof is required
}
});
Bundle parameters = new Bundle();
parameters.putString("fields", "id,name,email,gender, birthday,about,friends,education,cover,bio,first_name,hometown,inspirational_people,work,location,picture");
request.setParameters(parameters);
request.executeAsync();
}
@Override
public void onCancel() {
}
@Override
public void onError(FacebookException exception) {
//ERROR
}