-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Many of iOS users facing login problem in my app - need urgent solution for that #439
Comments
@UmangKaklotar add a valid reproducible code |
class FacebookAuthHelper { static Future<Map<String, dynamic>> signInFB() async { |
@UmangKaklotar have you tried with https://facebook.meedu.app/docs/7.x.x/user-information ? |
Keep in mind that since the limited login was introduced on iOS you cannot use the graph api with access tokens that was got since a limited login |
What version are you using?
7.1.1
What OS and version are you using to local deploy your application?
iOS 15.0 to 18.0
What platforms are you seeing the problem on?
iOS
pubspec.yaml
Describe the Bug
not getting graph profile information
Expected Behavior
It should work after clicking login button and logging in into facebook
class FacebookAuthHelper {
static Map<String, dynamic> profile = {};
static Future<Map<String, dynamic>> signInFB() async {
try {
await FacebookAuth.instance.login(permissions: ['public_profile', 'email'], loginBehavior: LoginBehavior.dialogOnly).then((loginResult) async {
if (loginResult.status == LoginStatus.success) {
AccessToken? accessToken = loginResult.accessToken;
var graphResponse =
await Dio().get('https://graph.facebook.com/v2.12/me?fields=name,picture.width(800).height(800),first_name,last_name,email&access_token=${accessToken!.tokenString}');
profile = json.decode(graphResponse.data);
accessToken = null;
} else {}
});
} catch(e) {
debugPrint("ERROR --> $e");
}
return profile;
}
}
To Reproduce
access token: Instaance of limited token
Relevant log output
No response
flutter doctor -v
The text was updated successfully, but these errors were encountered: