如何使用php或javascript Sdk从Facebook粉丝页面删除/卸载应用程序
$facebook = new Facebook(array(
'appId' => 'APP_Id',
'secret' => 'secret_key',
));
$page_info = $facebook->api("/".$fbPageId."?fields=access_token");
if( !empty($page_info['access_token']) ) {
$args = array(
'access_token' => $page_info['access_token']
);
$pageAccessToken = $page_info['access_token'];
}
在上面的代码中,$ page_info给出了id而不是访问令牌