0

I am writing an app to offer something to FB users depending on their locations. Current situation : I know how to check one specific user's location. I may periodically check all my users locations in a loop and compare them with their last positions.

Question: Is there a better method to get notified if any user of my fb app checks in ?

RCI
  • 145
  • 1
  • 1
  • 6
  • https://developers.facebook.com/docs/reference/api/realtime/ – CBroe Oct 30 '13 at 10:43
  • Thanks @CBroe, realtime was the key I was looking for. I found an [example](http://www.sitepoint.com/using-facebooks-realtime-updates-and-subscription-api/) and want to share it here : – RCI Oct 30 '13 at 11:48

1 Answers1

0

You can try using Realtime Updates, which is a feature that pings your app when a User updates their account. You can activate real time updates from your App Settings page, and configure it to listen to user checkins.

The facebook documentation shows how you can listen to updates. It's much more efficient to use this method, as you avoid making unnecessary calls to Facebook to check each user's checkins.

Niraj Shah
  • 15,087
  • 3
  • 41
  • 60
  • Just be aware that there seems to be a documentation bug in the FB docs. Instead of enabling 'checkins' for the subscription, you must enable 'feed'. Then user checkins will appear at your callback url as changed_fields=feed – Donn Lee Nov 25 '13 at 22:40