为FB图形API帖子设置自定义隐私以停止工作

时间:2012-11-07 05:45:12

标签: facebook-graph-api

它在几个月内完美无缺,但突然停止识别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");
  }
});

有人遇到过这个问题吗?任何帮助表示赞赏!

0 个答案:

没有答案
相关问题