facebook-node-sdk icon indicating copy to clipboard operation
facebook-node-sdk copied to clipboard

Unable to retrieve single page

Open dmj2144 opened this issue 8 years ago • 0 comments

Most likely this is something I am doing wrong but, all I want to do is retrieve a set of fields for a particular page. I have written the following:

var appId = foo; var appSecret = bar; var token = baz;

var Facebook = require('facebook-node-sdk'); var facebook = new Facebook( { appID: appId, secret : appSecret }); facebook.setAccessToken(token);

facebook.api('/15254154654', 'GET', {"fields" : "id,name" }, function(response) { console.log(response); });

Every single time this returns a 'null' response. I cannot for the life of me figure out the reason. I have run the query inside the Explorer and it works fine but, this fails.

Any ideas ?

dmj2144 avatar Aug 17 '16 00:08 dmj2144