Modified the GetMessageList function for Facebook.