Closed algu1984 closed 1 month ago
@algu1984 Sorry but I am not able to reproduce the issue. I have updated the native facebook sdk on iOS and Android maybe with this the issue was solved. Also keep in mind that you can get the user data using the graphApi and the http package to make a http API request
@darwin-morocho So you mean on IOS when you have 400 error from server getUserData throw PlatformException on Flutter right?
@darwin-morocho So you mean on IOS when you have 400 error from server getUserData throw PlatformException on Flutter right?
I didn't. I am not able to reproduce the 400 error
@darwin-morocho So you mean on IOS when you have 400 error from server getUserData throw PlatformException on Flutter right?
I didn't. I am not able to reproduce the 400 error
It's easy:
@darwin-morocho So you mean on IOS when you have 400 error from server getUserData throw PlatformException on Flutter right?
I didn't. I am not able to reproduce the 400 error
It's easy:
- breakpoint on getUserData
- remove token here
- run line getUserData
Sorry but I don't have any facebook account that throw an 400 error when I tried to get the user data. If you have experience in swift please feel free to open PR solving this. I think I will use the pure dart code to get the user profile and only use the facebook sdk fro login
@darwin-morocho So you mean on IOS when you have 400 error from server getUserData throw PlatformException on Flutter right?
I didn't. I am not able to reproduce the 400 error
It's easy:
- breakpoint on getUserData
- remove token here
- run line getUserData
Sorry but I don't have any facebook account that throw an 400 error when I tried to get the user data. If you have experience in swift please feel free to open PR solving this. I think I will use the pure dart code to get the user profile and only use the facebook sdk fro login
You don't need any special account for this just before calling getUserData in Flutter you have to revoke authoritarian on Facebook page from screenshot (click Remove for your app) it will force FB to answer with error and getUserData never return
@darwin-morocho So you mean on IOS when you have 400 error from server getUserData throw PlatformException on Flutter right?
I didn't. I am not able to reproduce the 400 error
It's easy:
breakpoint on getUserData
remove token here
run line getUserData
Sorry but I don't have any facebook account that throw an 400 error when I tried to get the user data. If you have experience in swift please feel free to open PR solving this. I think I will use the pure dart code to get the user profile and only use the facebook sdk fro login
You don't need any special account for this just before calling getUserData in Flutter you have to revoke authoritarian on Facebook page from screenshot (click Remove for your app) it will force FB to answer with error and getUserData never return
I will be back with this the next week. Due to I don't have the time right now
What version are you using?
6.0.3
What OS and version are you using to local deploy your application?
MacOS
What platforms are you seeing the problem on?
iOS
pubspec.yaml
Describe the Bug
await facebookLogin.getUserData(); - never returns on IOS if API respond with 400
https://github.com/darwin-morocho/flutter-facebook-auth/blob/master/facebook_auth/ios/Classes/FacebookAuth.swift#L111 never called i case of http 400 status code
Expected Behavior
it should throw PlatformException as on Android
To Reproduce
any 400 error is not propagated to reproduce it one can breakpoint on acebookLogin.getUserData(); remove facebook authrorization run line
Relevant log output
No response
flutter doctor -v
Info.plist (iOS)
No response
Podfile (iOS)
No response
AndroidManifest.xml
No response
MainActivity.java
No response
MainActivity.kt
No response
index.html
No response
Info.plist (macOS)
No response