dracoblue.net

Facebook Client for node.js 1.3.0

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 [email protected].

The package is also available by using npm:

$ npm install facebook-client

In javascript, node-facebook-client, node.js, open source by @ 26 Apr 2011

comments powered by Disqus

Recent Files

Advertisement

Recent Dev-Articles

Read recently

About

Blogroll