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):
2
3
4
5
6
7
8
"/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:
Messages
BTW the freezing issue could be related to https://github.com/joyent/node/issues/728 which is fixed in node after v0.4.12
Hi,
We are also using the Facebook client, and we seem to be experiencing the same issue as reported by Ran. We request the facebook api every 30 seconds for an update, and do that for multiple users (separately in their own respective loops). After a while, facebook stops responding, and all requests freeze and return nothing. Only after a restart of node everything works fine again, until facebook stops responding again. Do you have any idea? or has someone else figured out what to do? Could it be caused by the fact that every request is done with the same agent?
I don't believe we are hitting some Facebook limit, otherwise a restart wouldn't help. Any help here is greatly appreciated.
Furthermore I saw you updated the facebook-client to 1.4.0. Could you also make it available for npm? Thanks.
Please use the github issues page for questions:
https://github.com/DracoBlue/node-facebook-client
Hi,
i am pretty familer with the Facebook API, Connect and the Graph but just started with Node. I just tried to get run_example.js to work (locally thru a tunnel) but the facebook_session param in the callback from facebook_client.getSessionByAccessToken is always null?
On the client i see the FB object initialized with user info.
When stepping thru the code with node-inspector the payload for the request looks to be right with what looks to be a legit access_token so i am not sure where this is being tripped up.
I don't think its the tunnel because a similar example in ruby works.
I am not posting any code because i am running run_example.js with my app_id and secret.
thanks.
Hi,
I tried Facebook client with my project, it works fine under development.
But after put on production server, there was a problem when more user access (>100 concurrent), Facebook client caused node to stop responding. And when I checked the server traffic, report shown that the all requests to Facebook API got freeze and nothing return.
When I restarted node, everything go back to work perfectly, but only for a short period of time. Whenever more user enter the site, same problem happened again.
Do you have any idea..? Really need help.
Hi Suico,
you can't do that on server side. You need to use the facebook js api for that kind of work.
Regards,
Draco
Hi,
I tested the facebook client and it works fine since i get the authorization for the users basic information. how can i use the run_example.js to get an higher authorizations level from the user?
I think I need to add a scope parameter but i don't see where.
hope some body can help me.
ill whhopp any body
hy5y
I will try my best , too !
sat
I will try my best!
"I love node.js!"
hi
hi can i play the game?


