I am using this code for logging in to my app. It works fine, but when I try to get the url for profile pic
pic = facebook.get("/me/picture?fields=url")
I get None in response.
TypeError: must be string or buffer, not None
If I try sending this GET request from facebook Graph API, with same access-token, I get the profile link.
I checked out the version message by printing out get("/me") request, I get
connection: keep-alive etag: "2c59a2baef08156f18055c64eaa9d9822e35e8f1" pragma: no-cache cache-control: private, no-cache, no-store, must-revalidate date: Fri, 23 Jun 2017 14:20:04 GMT **facebook-api-version: v2.9** access-control-allow-origin: * content-type: text/javascript; charset=UTF-8
Which shows that version is automatically converting when i send request from flask-OAuth as well. Then what is it that I am missing ?