开发者

how post feed entry with publish restriction?

how post feed entry with publish restriction?

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

not working


resolved:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜