我想使用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();