关于facebook android sdk GameRequestContent调用失败

时间:2015-11-13 04:56:14

标签: android facebook-graph-api facebook-sdk-4.x

使用facebook-android-sdk 4.8.1

我想使用GameRequestContent API向朋友发送游戏请求

 i have a real id for my friend ,then i call GameRequestContent a to send a game request

like this

GameRequestContent content = new GameRequestContent.Builder().setMessage("Come play this level with me")
                             .setData("hello")
                             .setRecipients(Arrays.asList("117157035316159"))
                             .setActionType(GameRequestContent.ActionType.SEND)
                             .setObjectId("117157035316159")
                             .build();
                     GameRequestDialog g = new GameRequestDialog(getActivity());
                     g.registerCallback(callbackManager, new FacebookCallback<GameRequestDialog.Result>() {
                         @Override
                         public void onSuccess(GameRequestDialog.Result o) {

                             Log.i("onSuccess", o.toString());
                         }

                         @Override
                         public void onCancel() {
                             Log.i("onSuccess", "onCancel");
                         }

                         @Override
                         public void onError(FacebookException error) {
                             Log.i("onError", error.getMessage());
                             error.printStackTrace();
                         }
                     });
                     g.show(content);

我已尝试将用户名放入收件人中失败 但是!!!我的错误消息响应:{ httpResponseCode:-1,facebookErrorCode:2,facebookErrorType:null,message:抱歉,此功能现在不可用:处理此请求时发生错误,请稍后再试(此功能暂时不可用,hava处理时出错请求,请稍后尝试agin)

我希望知道为什么〜我该怎么做

0 个答案:

没有答案