简体   繁体   中英

Facebook Android SDK Graph API Version

Yesterday, I got the mail that my app uses features of fb sdk which will not be supported in the newly released graph api v8 from 24th October. One of the feature was:

A client or app token will now be required for querying user pictures through public_profile. Queries without a token will return a generic silhouette as the user picture.

Turns out, I was not requesting permission for picture in my login. I only got id from login and used that in url below to get user profile picture:

https://graph.facebook.com/%1$s/picture?width=400&height=400

As it turns out, it is working completely fine. I still looked at official docs where they suggested making a GraphRequest.newGraphPathRequest . Works fine with that too.

The whole point of my question is that I found no breaking change in my code. It was all working perfectly with both methods. Therefore, I checked both fb-sdk version and graph api version used. They were as following:

SDK Version: 5.15.3
Graph Api Version: 5.0

As currently, latest is 7.1.0 , I upgraded my fb sdk and printed versions again:

SDK Version: 7.1.0
Graph Api Version: 6.0

So, I have 2 questions:

  1. Why did I get a warning mail regarding update in graph api v8?
  2. Why is the latest Graph API version not used in latest Android sdk?

Thanks In Advance.

  1. It may be a common warning message for all who are requesting public profile. So, if you are not using then you can simply ignore it.

  2. Both SDKs are being release independently. As per Android SDK changelog , it may not be updated with the latest Graph API version. You can wait for a new version with latest Graph API integrated.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM