【发布时间】:2014-09-23 02:36:38
【问题描述】:
我正在尝试使用 Graph API 删除 Facebook 上的视频。
根据一些用户的说法,经过大量研究,语法如下:
$link = "https://graph.facebook.com/".$idFaceBook."_".$idVideo."?method=delete&access_token=".$token;
$output = curl($link);
不幸的是,它返回以下 JSON 响应:
{ "error": { "message": "(#100) This post could not be loaded", "type": "OAuthException", "code": 100 } }
测试 1:
$link = "https://graph.facebook.com/".$idFB."_".$video."?method=delete&access_token=".$_SESSION['tokenFB'];
$output = curl($link);
echo $output;
结果:
{ "error": { "message": "(#100) This post could not be loaded", "type": "OAuthException", "code": 100 } }
测试 2:
$link = "https://graph.facebook.com/".$video."?method=delete&access_token=".$_SESSION['tokenFB'];
$output = curl($link);
echo $output;
结果:
{ "error": { "message": "(#100) This post could not be loaded", "type": "OAuthException", "code": 100 } }
测试 3:
$link = "https://graph.facebook.com/".$video."_".$idFB."?method=delete&access_token=".$_SESSION['tokenFB'];
$output = curl($link);
echo $output;
结果:
{ "error": { "message": "(#1705) Selected wall post for deletion does not exist.", "type": "OAuthException", "code": 1705 } }
我发现了一些东西here。
但我收到了:
打开流失败:HTTP 请求失败! HTTP/1.1 400 错误请求
我该如何解决这个问题?
【问题讨论】:
标签: php facebook facebook-graph-api