Ng Chun Chong: sorry, I just read your code again.
It will work fine, but it does not allow you to run multiple requests at the same time.
What we were trying to achieve is sending:
facebook.request("id") facebook.request(appid.."/scores")
at the same time and be able to handle the responses properly.
What you did here is wait for the first response to come back and then send another one. There’s no issues with this approach.