Added a null check for response data from facebook