2012-10-28 2 views

답변

2

이 작업을 수행 할 필요가있는 다음과 같은 읽는 것입니다 사용자가 타임 라인에 대한 링크를 게시 할 수 있도록 허용 :

FB.ui(
{ 
    method: 'feed', 
    name: 'The Facebook SDK for Javascript', 
    caption: 'Bringing Facebook to the desktop and mobile web', 
    description: (
     'A small JavaScript library that allows you to harness ' + 
     'the power of Facebook, bringing the user\'s identity, ' + 
     'social graph and distribution power to your site.' 
    ), 
    link: 'https://developers.facebook.com/docs/reference/javascript/', 
    picture: 'http://www.fbrell.com/public/f8.jpg' 
}, 

function(response) 
{ 
    if (response && response.post_id) 
    { 
     alert('Post was published.'); 
    } 
    else 
    { 
     alert('Post was not published.'); 
    } 
} 

);

관련 문제