thebergamo/react-native-fbsdk-next

iOS limited login does not return all possible fields

thurasw opened this issue ยท 2 comments

๐Ÿ› Bug Report

When using the limited login flow on iOS, the facebook SDK now supports additional permissions: https://developers.facebook.com/docs/facebook-login/limited-login/permissions/. However, the Profile class in the library doesn't return all possible fields. Possible fields: https://developers.facebook.com/docs/facebook-login/limited-login/permissions/profile-helper

To Reproduce

  1. Initiate login using the LoginManager and the limited login flow, with the 'user_friends' permission.
  2. Fetch the current profile using the Profile class.
  3. The 'friendIDs' field is missing from the profile object.

Expected Behavior

The Profile class should be populated with additional fields, for additional granted permissions.

Code Example

const res = await LoginManager.logInWithPermissions(['public_profile', 'user_friends', 'user_birthday', 'user_age_range'], "limited");
const profile = await Profile.getCurrentProfile();
// `profile` is missing 'friendIDs', 'birthday' and 'ageRange' fields, which should be present with the correct permissions.

Environment

System:
OS: macOS 14.3.1
CPU: (12) arm64 Apple M3 Pro
Memory: 96.31 MB / 18.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.20.2
path: ~/.nvm/versions/node/v18.20.2/bin/node
Yarn:
version: 1.22.22
path: ~/.nvm/versions/node/v18.20.2/bin/yarn
npm:
version: 10.7.0
path: ~/.nvm/versions/node/v18.20.2/bin/npm
Watchman:
version: 2024.03.18.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /Users/thura/.gem/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.2
- iOS 17.2
- macOS 14.2
- tvOS 17.2
- visionOS 1.0
- watchOS 10.2
Android SDK: Not Found
IDEs:
Android Studio: 2023.1 AI-231.9392.1.2311.11330709
Xcode:
version: 15.2/15C500b
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.10
path: /usr/bin/javac
Ruby:
version: 3.3.0
path: /opt/homebrew/opt/ruby/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.6
wanted: 0.73.6
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.