3

I am unable to fetch all sports events happening in the state of Georgia. Is this the right way to use this, since its currently retrieving all events across the country.

FacebookClient publicFbClient = new DefaultFacebookClient(); 

Connection<Event> events = publicFbClient.fetchConnection( 
        "search", Event.class, 
        Parameter.with("category", "Sports"), 
        Parameter.with("location", "Georgia"), 
        Parameter.with("type", "event")); 
diya
  • 6,938
  • 9
  • 39
  • 55

1 Answers1

1

There's no mention in the doc of the ability to limit results geographically except center (latlong) and distance (radius) when the type place is defined.

You can set the radial search variables for events but doing so doesn't appear to change the results.

Alec Wenzowski
  • 3,878
  • 3
  • 25
  • 40
  • We are actually trying to search for events which have been posted from a certain geo location, but as you said I am not sure if this can be achieved with the Facebook API. The location snippet which you have shown above is for a user and is of no use in figuring out what we want to achieve. – diya Nov 07 '11 at 04:27
  • non-standardized location noted. A `venue` of an [`event`](https://developers.facebook.com/tools/explorer/?method=GET&path=331218348435) has a different format than a `location` of a [`page`](https://developers.facebook.com/tools/explorer/?method=GET&path=31131817744) – Alec Wenzowski Nov 07 '11 at 05:35
  • The location based search seems to work only for type=place and not for any other types like event | post – diya Nov 08 '11 at 09:59