Unable to get Events with specific location using restFB
题
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"));
解决方案
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.
不隶属于 StackOverflow