criso / fbgraph

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

Set multiple q for options object #102

Open hadijaveed opened 8 years ago

hadijaveed commented 8 years ago

I can query this in Fb graph explorer. search?q=Sanfransisco, music, rock&type=event How can I do it with the search method. Even if I set multiple comma separated words in q the results are not same. It doesn't even allow to set an Array

    var queryObj = {
      q: 'Sanfransisco, music, rock', // can't even set it an Array
      type: 'event',

      // center: [31.4834441, 74.0460169],
      // distance: 3000
    };

    FBGraph.search(queryObj, function(err, res) {
      if (err) return console.log(err);
      console.log(res);
    });
ffflabs commented 6 years ago

I used the same q parameter in Graph Explorer and fbgraph and it seems to return the same results. Remember to set your user token beforehand.