它在几个月内完美无缺,但突然停止识别CUSTOM隐私设置。如果自定义设置允许朋友列表,则会收到“未识别朋友值”错误,如果拒绝朋友列表,则隐私设置为“自我”。
$custom = ',"friends": "SOME_FRIENDS","allow": "' + $ids + '"';
var params = {};
params['message'] = $message;
params['name'] = $name;
params['link'] = $url;
params['caption'] = $caption;
params['privacy'] = '{"value":"'+$privacy + '"' + $custom + '}';
FB.api('/me/feed', 'post', params, function(response) {
if (!response || response.error) {
alert(response.error.message);
} else {
if (response && response.id) {
alert("success");
}
});
有人遇到过这个问题吗?任何帮助表示赞赏!