added setVersion method for setting graph api version