Skip to content
Prev Previous commit
Next Next commit
Added comments for unversioned API calls from FB.
  • Loading branch information
katzlbt committed May 12, 2020
commit 730ff644590639c9c3b75cd1f967df8ffecb94e7
4 changes: 3 additions & 1 deletion velruse/providers/facebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def login(self, request):
display = request.POST.get('display', self.display)
request.session['state'] = state = uuid.uuid4().hex
fb_url = flat_url(
'https://www.facebook.com/dialog/oauth/',
'https://www.facebook.com/dialog/oauth/',
# We refer to an API call made without specifying a version as an unversioned call. An unversioned call will always point to the oldest available version.
scope=scope,
display=display,
client_id=self.consumer_key,
Expand Down Expand Up @@ -122,6 +123,7 @@ def callback(self, request):
access_token = rbody['access_token']

# Retrieve profile data
# We refer to an API call made without specifying a version as an unversioned call. An unversioned call will always point to the oldest available version.
graph_url = flat_url('https://graph.facebook.com/me',
access_token=access_token)
r = requests.get(graph_url)
Expand Down