facebook图形api&;php sdk,删除事件!
就我的一生而言,我无法找到一种方法来删除、取消或删除我使用FBPHPSDK和GraphAPI创建和更新的facebook事件 我已经尝试了facebook文档中的每一个排列&堆栈溢出 以下是我在探索中发现的一些线索 以下是我到目前为止所做的尝试facebook图形api&;php sdk,删除事件!,php,facebook,facebook-graph-api,Php,Facebook,Facebook Graph Api,就我的一生而言,我无法找到一种方法来删除、取消或删除我使用FBPHPSDK和GraphAPI创建和更新的facebook事件 我已经尝试了facebook文档中的每一个排列&堆栈溢出 以下是我在探索中发现的一些线索 以下是我到目前为止所做的尝试 function delete_fb_event($event_data, $data) { //load the user for offline access and userid $user = $this->loa
function delete_fb_event($event_data, $data)
{
//load the user for offline access and userid
$user = $this->load_user($data['aid']);
if(!empty($user[0]['fb_offline_access']))
{
//instantiate Facebook API
require 'facebook.php';
$facebook = new Facebook(array(
'appId' => 'BLAHBLAHBLAH',
'secret' => 'BLAHBLAHBLAHBLAHBLAHBLAH',
'cookie' => true,
));
$fb_event = array(
"access_token" => $user[0]['fb_offline_access'],
);
$result = $facebook->api('/'.$event_data['fb_event_id'], 'DELETE', $fb_event); //Uncaught GraphMethodException: Unsupported delete request
//$result = $facebook->api('/'.$user[0]['fb_id']."_".$event_data['fb_event_id'], 'POST', array('access_token' => $user[0]['fb_offline_access'], 'method' => 'delete')); Uncaught OAuthException: (#803) Some of the aliases you requested do not exist
//$result = $facebook->api('/'.$event_data['fb_event_id']."_".$user[0]['fb_id'], 'POST', array('access_token' => $user[0]['fb_offline_access'], 'method' => 'delete')); Uncaught OAuthException: (#803) Some of the aliases you requested do not exist
//$result = $facebook->api('/'.$event_data['fb_event_id'], 'POST', array('access_token' => $user[0]['fb_offline_access'], 'method' => 'delete')); Uncaught GraphMethodException: Unsupported post request
//$result = $facebook->api('/'.$user[0]['fb_id']."_".$event_data['fb_event_id'], 'POST', array( 'access_token' => $user[0]['fb_offline_access'], 'method' => 'delete' )); Uncaught OAuthException: (#803) Some of the aliases you requested do not exist
return $result;
}
else
{
echo "error3"; //no FB offline access
}
}
嘿,彼得,
我试过运行你的代码,很抱歉,我也没有成功
我的第一个猜测是,您可能没有扩展权限-要删除事件,您需要创建_事件权限
尽管我试过了,但还是不断出现#200权限错误
在进一步挖掘的过程中,我遇到了一个类似的错误
有趣的是,尽管这个bug已经被标记为已解决,但如果您阅读了评论,用户仍然报告相同的问题
对不起,我没能提供多少帮助。
祝你好运我到家后会开始看它(假设我的电源已经打开)^ ^彼得,我今天也用了你的例子(和一些变体)尝试了一下。像Gublooo一样,我也收到了200个权限错误。你找到解决这个问题的方法了吗?没有:(我设法进入了他们的论坛,只是被告知问题已经解决,但没有提供任何示例或解决方案…他们的一些API内容是垃圾。。。