criso / fbgraph

NodeJs module to access the facebook graph api
http://criso.github.io/fbgraph/
1.09k stars 176 forks source link

Using access Token #23

Closed kanakiyajay closed 11 years ago

kanakiyajay commented 11 years ago

In your example for express , where do i insert the code

graph.setAccessToken(req.session.access_token);
criso commented 11 years ago

before making the request:

graph
  .setAccessToken(req.session.access_token)
  .get(graph.get("/me", function(err, data) {
      console.log("oh nooooes");
  });