2011-02-27 5 views
0

웹 사이트에서 내 Facebook 상태를 업데이트하고 다른 사용자가 자신의 상태를 업데이트 할 수있는 방법을 알고 싶습니다. 이 부분은 http://developers.facebook.com/docs/reference/rest/status.set/인데 양식의 정보를 URL로 가져 오는 방법을 알 수 없습니다.웹 사이트의 Facebook 상태 업데이트 상자 만들기

형태 : 사용자 상태

https://api.facebook.com/method/status.set?status=USERS+STATUS&access_token=* ** * ** * ** * ** * ** * ** * * & 형식 = json

누군가가 이것에 관해 약간의 빛을 비춰 줄 수 있었는지, 아니면 도와 줘? :(

업데이트! 나는 그래서

<html> 
    <head> 
     <title>My Great Website</title> 
    </head> 
    <body> 
     <div id="fb-root"></div> 
     <script src="http://connect.facebook.net/en_US/all.js"> 
     </script> 
     <script> 
     FB.init({ 
      appId:'128083010546416', cookie:true, 
      status:true, xfbml:true 
     }); 

     FB.ui({ method: 'feed', 
      message: 'Facebook for Websites is super-cool'}); 
     </script> 
    </body> 
</html> 

코딩이 조각을 발견, 나는 "메시지"상자에 양식 (또는 무언가)에서 텍스트를 얻는 방법?

답변

0

. 아니, 당신은에게 당신이 가지고있는 데이터와 페이스 북 대화 상자에서 상자를 기입하지 수 대신 당신은 FB.api 사용해야합니다

var body = 'Reading Connect JS documentation'; // Content to share 
FB.api('/me/feed', 'post', { message: body }, function(response) { 
    if (!response || response.error) { 
    alert('Error occurred'); 
    } else { 
    alert('Post ID: ' + response.id); 
    } 
}); 
관련 문제