I need an example of how to use a Javascript timer to find out when a user has created a new facebook event.
===

I'm new to facebook development and coding in general. I know there are currently no real time updates for the event object and that I somehow have to figure out how to poll facebooks servers using javascript. Is there an example of this anywhere? My app is dependent on knowing when a new event has been created so the app can grab its info. 