Category: node-facebook-client

rss

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):

1
2
3
4
5
6
7
8
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:

1
$ npm install facebook-client

node.js facebook client for graph and rest api

Today I finished packaging the node-facebook-client. The first version 1.0.0 contains the functions necessary to:

1
2
3
4
5
6
7
8
9
- do signed and unsiged requests
> graph api
> rest api
- generate a session from an
> accesstoken
> code+redirect_uri (oauth 2.0)
> ... or by using a session-key (facebook connect)
- validate a signature from facebook
- sign a request for facebook

An example and the source code can be found at the official github page of
node-facebook-client.

Download node-facebook-client 1.0.0 here at dracoblue.net. It should work with any nodejs version after 0.2.0.

If you want to install by using npm, do:

1
npm install facebook-client

Comments and patches appriciated as usual!