Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS limited login does not return all possible fields #525

Closed
thurasw opened this issue May 2, 2024 · 2 comments · Fixed by #582
Closed

iOS limited login does not return all possible fields #525

thurasw opened this issue May 2, 2024 · 2 comments · Fixed by #582
Labels
released wontfix This will not be worked on

Comments

@thurasw
Copy link

thurasw commented May 2, 2024

🐛 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

Copy link

stale bot commented Jun 2, 2024

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.

Copy link

🎉 This issue has been resolved in version 13.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released wontfix This will not be worked on
Projects
None yet
1 participant