ウォールに何かを投稿する方法は知って$facebook->api('/me/feed/', 'post', $feed);
いますが、Facebook アプリケーション ページにフィードを投稿する方法と、このフィードはアプリによって投稿される必要があります。
2011 次
1 に答える
4
どうぞ:
// we need to get an application access_token first
$token_url = "https://graph.facebook.com/oauth/access_token?" .
"client_id=" . $app_id .
"&client_secret=" . $app_secret .
"&grant_type=client_credentials";
$app_token = file_get_contents($token_url);
// seperate the string returned to use it in the post array
$arr = explode("=",$app_token);
$app_token = $arr[1];
$post_id = $facebook->api("/$app_id/feed", "POST", array("access_token"=>$app_token,"message"=>"hello app!"));
于 2011-02-07T13:56:51.610 に答える