facebook like returns错误查找请求的故事

时间:2014-09-13 13:43:36

标签: java android facebook facebook-graph-api facebook-like

我想使用FB SDK在postId上做类似的事情。

这篇文章是fb页的第3部分。

通常它有效。但是当我在帖子创建几天后尝试做的时候,我得到了这个回复:

Error finding the requested story

这是我的代码:

Request request = new Request(session,
        takeFromPublicMacrosOrServer(currentOffer.fbPostId)
                + "/likes", null, HttpMethod.POST,
        new Request.Callback() {

            @Override
            public void onCompleted(Response response) {

                // Request complete
                if (response.getError() == null) {
                    UnlockRequestToServer unlockRequestToServer = new UnlockRequestToServer(
                            mOffersListActivity,
                            PublicMacros.TYPE_UNLOCK_FB_LIKE,
                            currentOffer.fbPostId);

                } else {
                    final String errorMsg = "error: "
                            + response.getError().toString();
                    Log.e(MyLogger.TAG, errorMsg);
                    mToaster.showToastInUiThread(errorMsg);
                }
                String re = response.toString();
            }

        });

request.executeAsync();

0 个答案:

没有答案