我正在尝试使用自定义隐私设置在Facebook上发布:
$postRequest=new FacebookRequest($sess,'POST','/me/feed',array(
'message'=>'My first post using graph api ',
'description'=>'new Description',
'privacy'=>array('description'=>'Only Me','value'=>'SELF'),
'link' => 'www.example.com'
)
但发生错误:
(#100)隐私必须包含有效的隐私“值”
怎么了?
你近了 您必须将PHP数组编码为JSON数组:
'privacy' => json_encode(array('description'=>'Only Me','value'=>'SELF')),
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句