fbgraph icon indicating copy to clipboard operation
fbgraph copied to clipboard

Set multiple q for options object

Open hadijaveed opened this issue 9 years ago • 1 comments

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);
    });

hadijaveed avatar May 14 '16 16:05 hadijaveed

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.

ffflabs avatar Jan 31 '18 13:01 ffflabs