If i request facebook with the following example code:
fb\_command = 'get\_friends'
facebook.login( appId, listener, {"publish\_stream"} )
fb\_command = 'get\_user\_info'
facebook.login( appId, listener, {"publish\_stream"} )
and inside the event phase login do:
if ( "login" == event.phase ) then
if fb\_command == 'get\_user\_info' then
facebook.request( "me" )
elseif fb\_command == 'get\_friends' then
facebook.request( "me/friends" )
end
end
it happens that the code facebook.request( "me/friends" ) will never be executed, because when execution arrives to that login phase the second request has already set fb\_command = 'get\_user\_info'
there are a way to register a listener for each request? Or do i need to implement some kind of semaphore to allow only one request at a time? [import]uid: 145589 topic_id: 29236 reply_id: 329236[/import]