def get_version(self):
args = {"<STR_LIT>": self.access_token}<EOL>try:<EOL><INDENT>response = self.session.request(<EOL>"<STR_LIT:GET>",<EOL>FACEBOOK_GRAPH_URL + self.version + "<STR_LIT>",<EOL>params=args,<EOL>timeout=self.timeout,<EOL>proxies=self.proxies,<EOL>)<EOL><DEDENT>except requests.HTTPError as e:<EOL><INDENT>response = json.loads(e.read())<EOL>raise GraphAPIError(response)<EOL><DEDENT>try:<EOL><INDENT>headers = response.headers<EOL>version = headers["<STR_LIT>"].replace("<STR_LIT:v>", "<STR_LIT>")<EOL>return str(version)<EOL><DEDENT>except Exception:<EOL><INDENT>raise GraphAPIError("<STR_LIT>")<EOL><DEDENT>
Fetches the current version number of the Graph API being used.