Updated for Google and Facebook