我正在尝试删除Facebook OG Like。
首先,我创建了OG动作:
POST /me/[app-namespace]:begin
day = [day-page-url]
然后我从其他用户那里创建了它:
POST /me/og.likes
object = [day-page-url]
最后,让我们尝试从创建它的同一个用户中删除(在上一个操作中返回了id):
DELETE 104127963073059
Debug说这绝对是ID。
但结果是:
(#10) Application does not have permission for this action
我们使用权限:
email,user_birthday,user_location,publish_actions,publish_stream
您可以通过调试工具检查:
App ID: 395096416536617 : ODM TEST
User ID: 100004287038925 : Foo
Issued: Unknown
Expires: 1346684400 (in about an hour)
Valid: True
Origin: Unknown
Scopes: create_note email photo_upload publish_actions publish_stream share_item status_update user_birthday user_location video_upload
使用cURL再次检查:
Andrew-MacBook-Pro:onedayofmine macuser$ curl -X DELETE \
> -F 'access_token=AAAFnVo0zuqkBA...0gSDLRbj' \
> https://graph.facebook.com/104156136403575
{"error":{"message":"(#10) Application does not have permission for this action","type":"OAuthException","code":10}}
也许我需要一些额外的权限?
答案 0 :(得分:0)
已移至答案框以获取可读性:
我也可以删除like
操作。
以下是我user2
创建的类似操作:
{"data":[{"id":"3639745067497","from":{"name":"John Smith","id":"10XXX648"},...,"application" {"name":"Article Liker","namespace":"article_liker","id":"364XX311647"},"data":{"object":{"id":"343299145761433","url":"http:\/\/example.com\/js_like_show_authtoken.php","type":"article_liker:review","title":"Article Two"}},"type":"og.likes", ...
在这里我删除了它:
curl -X DELETE -F 'access_token=AAAFLVZAuGuN...TZAWlqaIZAx' https://graph.facebook.com/3639745067497
true
其中,true
=成功
访问令牌权限:
Scopes: publish_actions read_stream