Hi,
I’m currently facing a problem using the Facebook implementation of Corona. Let’s say the user is logged in, everything is set up well. If I :
- request for “me”
- request for “me/friends”
I will get my listener (the one I set in my facebook.login( ) function) called twice, but how can I know which of my request is called first (these calls are asynchronous) ? I couldn’t find any event.source-like property to say “This event comes from a me/friends request”, or “this event comes from a me/feed request” ?
Here, a global variable fbCommand is set each time a request is called, and in the listener we check if fbCommand == GET_USER_INFO then … end.
This approach is almost what I’m looking for, despite these requests are asynchronous. This case will not work :
- request for “me” – fbCommand == GET_USER_INFO
- request for “me/friends” – fbCommand == GET_USER_FRIENDS now
- Answer for “me” comes, but we treat it as GET_USER_FRIENDS
If anyone have a workaround for this it would be great :). Thanks !
Jeremy. [import]uid: 188126 topic_id: 32804 reply_id: 332804[/import]