как опубликовать запись фида с ограничением публикации? - PullRequest
0 голосов
/ 17 сентября 2011

enter image description here

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;
    }
);

не работает

1 Ответ

1 голос
/ 18 сентября 2011

решено:

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);
  }
});
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...