I'm trying to make an API call to Facebook to retrieve my status and display it on my website.
+1
A:
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
philfreo
2010-02-04 07:13:57
A:
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);
});
brian
2010-09-21 19:14:51