0

次のpostコマンドを発行してアルバムを作成すると、何も作成されません。

    $album_url="https://graph.facebook.com/".$fanpage_id."/albums?"
    . "name=" . urlencode($album_name)
    . "&message=" . urlencode($album_description)
    . "&method=POST"
    . "&access_token=" . $fanpage_token; 
    file_get_contents($graph_url);

ただし、アルバムは以下のハードコードで作成できます。上記のpostコマンドに何か問題がありますか?

   $album_url = 'https://graph.facebook.com/xxx/albums?name=%22album%20php%20%20name%22&message=%22Album%20php%20%20description%22&method=POST&access_token=xx;
   file_get_contents($album_url);
4

0 に答える 0