Open rohnsht opened 3 months ago
I am facing the same problem here. However, it works fine in iOS simulators and iOS 17.5.1 (iPhone 14 pro) but, did not get user data in iOS 15.8.2 (iPhone 7) and iOS 17.4.1 (iPhone 15 pro max) real devices.
Got any solution? @rohnsht
Same issue here!
I have recived this message from meta.
There have been changes made to the Facebook Login SDK for iOS that require your action.
As of late March, we have made changes to our iOS FBLogin SDK in response to the overall changes to iOS that will affect all iOS developers who utilize FBLogin. In order to avoid potential app disruption, we are recommending iOS developers to do one of the following, based on how their application is utilizing FBLogin: Developers currently using Limited Login and/or manual endpoints: Update the Facebook Login SDK to the most recent version and update any Limited Login endpoint domains within your application to the new Limited Login endpoint (as shown here). Developers not currently using Limited Login: We recommend you update the Facebook Login SDK to the most recent version, integrate Limited Login into your application, and update any Limited Login endpoint domains within your application to the new Limited Login endpoint (as shown here). Alternatively, you can update the Facebook Login SDK to the most recent version without integrating Limited Login into your application. However, if you do not integrate Limited Login, you will need to handle all Graph API calls using Graph API, iOS. Any Graph API, iOS calls that do not fall within these permissions will fail. Also, please note that the access token will not be valid. You can learn more about how to implement these changes here. You can also visit our FAQ for more information.
It seems I need to update the ios sdk to the lastest version.
I will try to do it in these days
I encountered the same issue and discovered that the exception occurs only when my app has been granted app tracking permission and I use the default FacebookAuth.instance.login()
function. This function uses the loginTracking
parameter with the default value LoginTracking.limited
. When I change the parameter to LoginTracking.enabled
, everything works fine.
Therefore, if you are requesting app tracking permission (common if you are using ads) and the user has granted the permission, you should use LoginTracking.enabled
.
If you do not want to check if app tracking is enabled, just use:
FacebookAuth.instance.login(loginTracking: LoginTracking.enabled)
This function triggers a limited login if tracking permission is not granted and the "normal" login if tracking is granted. I think LoginTracking.enabled
should be the default parameter.
If anyone know how to upgrade Facebook android sdk, Then please describe here in detail My sdk version is too low
i used implementation 'com.facebook.android:facebook-login:latest.release' inside android/app/build.gradle and in dependencies
same issue too
I faced this problem and have already solved it(i tested on the iOS version 15.4 and 17.4 and I tested both the scenarios of enabling and disabling ad analytics permissions separately . all work fine ). Friends who have the same problem can try to solve it in the following way:
Privacy - Tracking Usage Description
key in the info.plist file by xcode ,if you use other ide you can also copy this into the info.plist file :
<key>NSUserTrackingUsageDescription</key>
<string>the descrption why you use this privacy</string>
loginTracking
with LoginTracking.enabled
await FacebookAuth.instance.login(loginTracking:LoginTracking.enabled)
flutter clean
flutter run
I faced this problem and have already solved it(i tested on the iOS version 15.4 and 17.4 and I tested both the scenarios of enabling and disabling ad analytics permissions separately . all work fine ). Friends who have the same problem can try to solve it in the following way:
- add the
Privacy - Tracking Usage Description
key in the info.plist file by xcode ,if you use other ide you can also copy this into the info.plist file :<key>NSUserTrackingUsageDescription</key> <string>the descrption why you use this privacy</string>
- set the
loginTracking
withLoginTracking.enabled
await FacebookAuth.instance.login(loginTracking:LoginTracking.enabled)
flutter clean
flutter run
I did exactly same, also try various login behavour, but getting issues, For me issue is not resolved even if enabled LoginTracking.enabled
I've the same problem during
getUserData(fields: "name,email")
Got any solution? @rohnsht
I'm always receiving invalid-credential
on iOS
What version are you using?
flutter_facebook_auth: ^7.0.0
What OS and version are you using to local deploy your application?
ios 16.6
What platforms are you seeing the problem on?
iOS
pubspec.yaml
Describe the Bug
I am trying to get the user's after after successful limited login in ios. However, I get this issue:
`flutter: PlatformException(FAILED, The operation couldn’t be completed. (com.facebook.sdk.core error 8.), null, null) flutter:
0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7)
1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)