简体   繁体   中英

How to notify app that user has changed in facebook app/ Safari IOS

Using Facebook SDK 3.5.1 in my app, my requirement is that i have logged in the app via facebook with one user (say user A) and now if i login with other user (say user B) in mobile safari/facebook app (which one is available), in this case can my app get notified that another user logged in other than one who was logged in app.

Any references or ideas?

Thanks in advance

Note : I know that this Question was asked before but no answer is there :(

I don't think there is an option for this in the Facebook API. At least I couldn't find it.
Facebook SDK for iOS

What you can do, however, is simply check every minute or so who is available. You can save this data in an array and then compare it a minute later with the new data.

Here is how you can fetch a list of your connected friends:
iOS Facebook SDK - get list of Friends connected with App

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