try:
    oauth_access_token = urlparse.parse_qs(str(oauth_response))['access_token'
        ][0]
except KeyError:
    print('Unable to grab an access token!')
exit()
facebook_graph = facebook.GraphAPI(oauth_access_token)
Programmatically getting an access token for using the Facebook Graph API