开发者

Is it possible to retrieve Facebook status using jQuery?

I'm trying to make an API call to Facebook to retrie开发者_开发技巧ve my status and display it on my website.


Check out the Facebook Javascript client library. There's a stable version and a new alpha version. Looks like you want the client library to access their RESTful API.

Here's all the pieces

  • http://wiki.developers.facebook.com/index.php/JavaScript_Client_Library
  • http://github.com/facebook/connect-js
  • http://wiki.developers.facebook.com/index.php/JavaScript_SDK_%28Open_Source%29
  • http://developers.facebook.com/docs/?u=facebook.jslib.FB.ApiClient
  • http://wiki.developers.facebook.com/index.php/Users.getInfo


those links seem outdated, try the graph api.

sample code:

var fbObj = 'http://graph.facebook.com/brianyang1&callback=?'; $.getJSON(fbObj, function(json) { $('#output').html(json.first_name); });

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜