0

当我发出以下发布命令来创建相册时,什么都没有创建。

    $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