skip to Main Content

Nodejs, Request and Dot notation – Facebook api

I am trying to get first name of a facebook user via their API. This is my code var user = request("https://graph.facebook.com/v2.6/"+psid+"?fields=first_name,last_name&access_token="+token, function(err, res, body) { console.log("name: " + body.first_name); console.log("body: " + body); }); This is the result: name:…

VIEW QUESTION
Back To Top
Search