Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Facebook 如何使用发布限制发布提要条目?_Facebook_Post - Fatal编程技术网

Facebook 如何使用发布限制发布提要条目?

Facebook 如何使用发布限制发布提要条目?,facebook,post,Facebook,Post,不工作已解决: FB.ui({ method: 'feed', name: name, link: 'http://apps.facebook.com/my-app/', picture: 'app-picture', caption: 'this is only for me', privacy: { value: 'SELF' }}, function(response) { if (re

不工作

已解决:

FB.ui({ method: 'feed',
        name: name,
        link: 'http://apps.facebook.com/my-app/',
        picture: 'app-picture',
        caption: 'this is only for me',
        privacy: { value: 'SELF' }},
    function(response) {
        if (response && response.post_id) {
            // Post was published
            alert('Post was published.');
        } else {
            alert('Post was not published.');
        }
        return true;
    }
);
FB.api('/me/feed', 'post', {
    message: 'message',
    name: 'name test',
    caption: 'caption',
    privacy: { 'value':'CUSTOM','friends':'SELF'} },
    function(response) {
  if (!response || response.error) {
    alert('Error occured');
  } else {
    alert('Post ID: ' + response.id);
  }
});