Facebook Android Sdk appsecret_proof

时间:2016-01-06 03:53:17

标签: android facebook facebook-graph-api facebook-android-sdk

我在登录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
                }

0 个答案:

没有答案