When calling the Facebook Login API, the listener appears to be called N times, where N is the number of times you’ve called the Login API. For example:
- Log the user in with facebook.login().
- Listener is called.
- Log them out with facebook.logout().
- Log them in again with facebook.login().
- Listener is called.
- Listener is called again.
My guess is each time you call facebook.login(), it takes the supplied listener and stores it, calling it any time there is an event to report. The trouble is, when you call facebook.login() a second, third, or fourth time, you get three, four, or five listener calls. I’d just not supply the listener after the first time, but it is a required parameter. I also don’t see anyway to remove the listener. Is this a bug, or am I missing something?
OS: iOS 7.0.4
Device: iPad, 3rd generation
Build: CoronaEnterprise 2013.2087