added setVersion for setting graph api version