Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set multiple q for options object #102

Open
hadijaveed opened this issue May 14, 2016 · 1 comment
Open

Set multiple q for options object #102

hadijaveed opened this issue May 14, 2016 · 1 comment

Comments

@hadijaveed
Copy link

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
Copy link

ffflabs commented Jan 31, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants