1

当创建相册并为我作为管理员的页面填充照片时,相册和图像不公开可见。范围设置为 manage_pages 和 publish_stream。

有什么办法可以让相册和所有照片公开浏览/可见吗?

// create album
$albumArgs = array(
   'message' => 'A new album',
   'name' => $albumName,
   'privacy' =>  '{"value" :"EVERYONE"}',
   'access_token' => $accessToken
);          
$album = $facebook->api('/'.$user_profile['id'].'/albums', 'post', $albumArgs);

// add photo
$photoArgs = array(
   'message' => 'New photo',
   'image' => '@'.realpath($entry->picture),
   'privacy' =>  '{"value" :"EVERYONE"}',
   'access_token' => $accessToken
);
$result = $facebook->api('/'.$album['id'].'/photos', 'post', $photoArgs);
4

0 回答 0