facebookarchive / react-native-fbsdk

A React Native wrapper around the Facebook SDKs for Android and iOS. Provides access to Facebook login, sharing, graph requests, app events etc.
https://developers.facebook.com/docs/react-native
Other
2.99k stars 909 forks source link

FBSDK 8.0 requires client or app token for querying user pictures #822

Open sbarbour-93 opened 3 years ago

sbarbour-93 commented 3 years ago

🐛 Bug Report

FB Announcement on Facebook Developer Console:

"As part of Graph API v8.0, we've made some important changes to our token requirements that take effect on October 24, 2020.

Your app uses one or more of the following announced changes:

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."

I have updated my application to the latest RNFB-SDK (version 3.0.0) and selected the FB SDK v8.0.0 in my iOS and Android build files. However, I cannot see an API that will allow me to pass a client or app token to the LoginManager.

To Reproduce

Enable social login to your application using the RNFB SDK's Login Manager and request the "public_profile" permission. After a successful login attempt to load the user's FB profile picture using "data.user.photoURL". Instead of showing their profile picture it will show a default silhouette.

Expected Behavior

Enable social login to your application using the RNFB SDK's Login Manager and request the "public_profile" permission. After a successful login attempt to load the user's FB profile picture using "data.user.photoURL" you will see the user's current FB profile picture.

Environment

System: OS: macOS 10.15.7 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Memory: 6.05 GB / 16.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 14.13.1 - /usr/local/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 6.14.8 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 14.3, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 IDEs: Android Studio: 4.1 AI-201.8743.12.41.6858069 Xcode: 12.3/12C33 - /usr/bin/xcodebuild npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.63.4 => 0.63.4 npmGlobalPackages: react-native: 0.61.5