fix handling of facebook embedded links, and minor code formatting.