Adapted to get FB plugin working nice