【发布时间】:2014-03-03 21:36:08
【问题描述】:
有什么方法可以用graph api更改Facebook相册隐私设置吗?
我试图找出答案,但我能找到的只是如何使用fql 获取隐私设置,而不是设置。
我正在按如下方式创建相册
$postdata = http_build_query(array(
'name' => $album_name,
'message' => $album_description
)
);
$opts = array('http' =>
array(
'method'=> 'POST',
'header'=>
'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
)
) $context = stream_context_create($opts);
$result = json_decode(file_get_contents($graph_url, false, $context));
$albumid = $result->id;
现在如果我添加privacy=>"value",它会给出$albumid=null。
我不确定我需要在哪里添加隐私参数。
【问题讨论】:
标签: facebook facebook-graph-api facebook-fql