简体   繁体   中英

I want to get notified if my facebook app's users check in any location

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 ?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM