开发者

Unable to get Events with specific location using restFB

开发者 https://www.devze.com 2023-04-09 01:45 出处:网络
I am unable to fetch all sports events happening in the state of Georgia. Is this the right way to use this, since it开发者_开发知识库s currently

I am unable to fetch all sports events happening in the state of Georgia. Is this the right way to use this, since it开发者_开发知识库s 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消