Fixed facebook login. Added isPublic check for images.