facebook-node-sdk
facebook-node-sdk copied to clipboard
Unable to retrieve single page
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 ?