Supporting Facebook API 1.0 and 2.0