-1

First of all i want to make a functional call on facebook API using meteor and so far my attempt is this :

var link = "https://graph.facebook.com/v2.5/me"
var arguments = {
  headers: {"User-Agent": "Meteor/1.0"},
  params: {
    "access_token":  "CAAXbhZBRfBXcBAG6NjC6rG505UiVKUzP9xLc94jgARcs3tw6mdgaNWmbsOFv59SmkyrGZCU2cjOqSiJ02knmKXRMe71dZCTiyOhvx40FAm6x1RwSKTbtSFunVeWVhgcuoaNNz8xIBZAbOAWFsHo5pSbnNS3ZAZAadhrmqi1hcC5EzujI9KNZBD7TOuqUBBvV4gZD",
}
};
HTTP.call('GET',link,arguments,function(error,response){
  console.log(response);
});

The access token used is the one i got from the graph api explorer someone in another post mentioned (Facebook Access Token for Pages). Any ideas on why it's not working?

EDIT: was missing a protocol on the link, thanks! ( this question can be closed)

Community
  • 1
  • 1
J. Barbosa
  • 21
  • 6

1 Answers1

0

You have to set the protocol in link

var link = "http(s)://..."
webdeb
  • 12,993
  • 5
  • 28
  • 44