criso / fbgraph

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

Project still active? #84

Closed lukewendling closed 8 years ago

lukewendling commented 9 years ago

Anyone maintaining this? Seems there are stale open issues.

I tried several examples from the README with no luck. I'm using an authtoken created by an oauth lib. Some of the failures:

var graph = require('fbgraph');
graph.setAccessToken('...');

var searchOptions = {
    q:     "brogramming"
  , type:  "post"
};

graph.search(searchOptions, function(err, res) {
  console.log(res); // {data: [{id: xxx, from: ...}, {id: xxx, from: ...}]}
});

{ error: 
   { message: 'An unknown error has occurred.',
     type: 'OAuthException',
     code: 1 } }

For the username queries:

{ error: 
   { message: '(#803) Cannot query users by their username (zuck)',
     type: 'OAuthException',
     code: 803 } }
criso commented 9 years ago

Your first issue seems like you don't have a valid token.

second issue: https://github.com/criso/fbgraph/issues/79