2
イムはEROR [function.file-getを-内容]開発者がのFacebookアプリケーションの要求発行
$token_url = "https://graph.facebook.com/oauth/access_token?" .
"client_id=" . facebook::getConfig('appId') .
"&client_secret=" . facebook::getConfig('secret') .
"&grant_type=client_credentials";
$app_access_token = file_get_contents($token_url);
$user_id = "100002758712176";
$apprequest_url = "https://graph.facebook.com/".
$user_id .
"/apprequests?message='test string'&" .
$app_access_token . "&method=post";
$result = file_get_contents(urlencode($apprequest_url));
echo "App Request sent? ". $result;
を元ウェブページの例をテストしようとしてました! HTTP/1.1 400 Bad Request ブラウザで$ apprequest_urlを使用するとすべて動作します。問題はどこだ ?
はあなたですあなたのアプリケーションにログインしたFacebookのユーザーですか?ユーザーがアプリを認証した後にのみ、アクセストークンをリクエストできます。 – Lix