0
我得到了一些更奇怪的事情。我有兩個Facebook API調用(使用Facebook PHP-SDK)彼此相鄰。第一個電話將轉入罰款,但第二拋出異常:此API調用需要有效的app_id
「這個API調用需要有效的APP_ID」
此之前我請訪問令牌與offline_access和publish_stream API調用。令牌是有效的,因爲這個「問題調用」旁邊的API調用將會很好。以把事情說清楚,我的一小段代碼:
// this call goes fine!
$user_info = $this->facebook->api('/'.$user_id);
// create the wallpost for Facebook
$wallpost = array(
'message' => 'some message',
'name' => 'Shoppe',
'caption' => "Ik heb een product toegevoegd",
'link' => site_url(),
'description' => $description,
'picture' => site_url("assets/img/logo.png")
);
// this throws an exception "This API call requires a valid app_id"
$result = $this->facebook->api('/'.$user_id.'/feed/','post',json_encode($wallpost));
$ user_id是有效的值,所以是在$ wallpost所有的信息