skip to Main Content

Send a private message on facebook – Facebook api

I am able to send a private message to my facebook friend using belwo facebook API. <html xmlns:fb="https://www.facebook.com/2008/fbml"> <body> <script src="http://connect.facebook.net/en_US/all.js"></script> <div id="fb-root"></div> <script> FB.init({appId: '315462388662460', xfbml: true, cookie: true}); FB.ui({ method: 'send', link: 'https://www.youtube.com/watch?v=uia0PQy5ksg', }); </script> </body> </html> And…

VIEW QUESTION

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