Open nspilman opened 6 years ago
Yes, because it's the base time, which mean it'll crawl all the events start from today and not limited by any date at all.
You can fix that by adding until query param in this line:
https://github.com/tudoanh/python-facebook-bot/blob/master/facebook_bot/facebook_bot.py#L133
I'll update soon to add the stop date point when filter. You can check the Facebook official docs here for more infomation.
https://developers.facebook.com/docs/graph-api/using-graph-api#time
Thanks for using my lib. Hope you guys will continue report more bugs so I can improve it. P/s: Please using the ``` for code syntax. Like this:
import string
print(string.ascii_letters)
Thank you for your response!
In regards to the fix you suggest above - my version of the API already has said code in the getevents() function.
events = s.get( BASE_URL + API_VERSION, params={ "ids": page_id, "fields": ( "events.fields({0}).since({1})" .format(','.join(fields), base_time) ), "access_token": token, } ) return events.json()
Yes, I mean you could monkey patching my lib until I fix it :D
Thank you for the great application. I have found that the location based searches work, except instead if pulling in results for Today, I get results across the board.
For example, I'm looking for Music events in Madison, WI-
My results are as follows. Notice I get ZERO results for today, but instead results for dates across the board.
Thank you, Nate