Enable compatability to all versions of graph api.