Today I have an update for the
Facebook Client for node.js finished.
The version 1.3.0 is a graph and rest api client for facebook. It has support for the latest stable nodejs 0.4.x.
Now it's possible to post data (for instance into your news feed):
facebook_session.graphCall(
"/me/feed", {
"message":"I love node.js!"
},
'POST'
)(function(result) {
console.log('The new feed post id is: ' + result.id);
});
All you need to do is to specify the method parameter (defaults to GET).
Thanks to
jharlap for this addition.
Also thanks to tslater and shaisultanov. They found an issue with expires-time (which is fixed now) and requested the brand new FacebookSession#isValid method, which tells you if the session is really alive.
Source may be found at node-facebook-client@github.
The package is also available by using npm:
$ npm install facebook-client