它在几个月内运行良好,但突然停止识别 CUSTOM 隐私设置。如果自定义设置允许好友列表,则会出现“好友值未被识别”错误,如果它拒绝好友列表,则隐私设置为“SELF”。
$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");
}
});
有人遇到过这个问题吗?任何帮助表示赞赏!