开发者

What permissions do I need to POST a like for a user?

开发者 https://www.devze.com 2023-04-01 10:32 出处:网络
I\'m POSTing a like for a user\'s photo using the following code (in the Android SDK): params = new Bundle();

I'm POSTing a like for a user's photo using the following code (in the Android SDK):

params = new Bundle();
params.putString(Facebook.TOKEN, values.getString(Facebook.TOKEN));
json = fac开发者_如何学编程ebook.request(photoUpload.id + "/likes", params, "POST");

But the response I get back is:

{"error":
    {"type":"OAuthException",
     "message":"(#200) Permissions error"}
}

But I already have the publish_stream permission. Do I need a different permission? Another one?


publish_stream is the correct one for wall posts. I would also try user_photos since you are trying to like a photo. Wonder if you are running into some temporary Facebook issue.

publish_stream: Enables your app to post content, comments, and likes to a user's stream and to the streams of the user's friends. With this permission, you can publish content to a user's feed at any time, without requiring offline_access. However, please note that Facebook recommends a user-initiated sharing model.

0

精彩评论

暂无评论...
验证码 换一张
取 消