Cheers !
I think I got the most complicated and now I am stucked in the
basic...check this...
facebook.getFbData(req.params.Auth, '/me/friends/', function(data){
});
So far, it's works fine ! I got a result like...
{"data":[{"name":"xxx","id":"5021698"},{"name":"xxx","id":"5426630"},{"name":"xxx","id":"5596050"},{"name":"xxx","id":"5630985"},{"name":"El\u00f3i","id":"5648629"}
Now I need to fetch record by record to insert it in my database.But I
don't know how to manipulate this structure.I need something like...
for (var i =0 ; i < records inside the data root ; i++) {
name = data[i].name;
id = data[i].id;
insert into mytable values (name, id)
}
I have no clue how to fetch record by record.Any good advice ? ty in
advance !
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.