2011-09-17 13 views
0

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

を働いていない:

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); 
    } 
}); 
関連する問題