Skip to content

Commit

Permalink
Updated Facebook iOS SDK to 17.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Darwin authored and Darwin committed Jun 19, 2024
1 parent 133a045 commit 1135e83
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 54 deletions.
8 changes: 8 additions & 0 deletions facebook_auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### 7.0.1
- Updated Facebook iOS SDK to 17.0.2
- IMPORTANT: If you are upgrading from a previous version
on iOS you must update your pod dependencies:
```shell
cd ios && pod update flutter_facebook_auth
```

### 7.0.0
- iOS: Added `nonce` parameter in `login` function.
- **BREAKING CHANGE** Removed the `grantedPermissions` getter.
Expand Down
38 changes: 19 additions & 19 deletions facebook_auth/example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
PODS:
- FBAEMKit (17.0.1):
- FBSDKCoreKit_Basics (= 17.0.1)
- FBSDKCoreKit (17.0.1):
- FBAEMKit (= 17.0.1)
- FBSDKCoreKit_Basics (= 17.0.1)
- FBSDKCoreKit_Basics (17.0.1)
- FBSDKLoginKit (17.0.1):
- FBSDKCoreKit (= 17.0.1)
- FBAEMKit (17.0.2):
- FBSDKCoreKit_Basics (= 17.0.2)
- FBSDKCoreKit (17.0.2):
- FBAEMKit (= 17.0.2)
- FBSDKCoreKit_Basics (= 17.0.2)
- FBSDKCoreKit_Basics (17.0.2)
- FBSDKLoginKit (17.0.2):
- FBSDKCoreKit (= 17.0.2)
- Flutter (1.0.0)
- flutter_facebook_auth (7.0.0-dev.6):
- FBSDKLoginKit (~> 17.0.0)
- flutter_facebook_auth (7.0.1):
- FBSDKLoginKit (~> 17.0.2)
- Flutter
- flutter_secure_storage (6.0.0):
- Flutter
Expand Down Expand Up @@ -51,17 +51,17 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/url_launcher_ios/ios"

SPEC CHECKSUMS:
FBAEMKit: 97eaf41451b49691447df831f7f425229ae64b66
FBSDKCoreKit: e34084567d11cfdd4787ace2b1a0255bedf34ade
FBSDKCoreKit_Basics: 3d78e5fe00504e5c1aed1c48de0654c3a1565d15
FBSDKLoginKit: 9a581053879a1e6fc3fab8ead341c78c6a318255
FBAEMKit: 619f96ea65427e8afca240d5b0f4703738dfdf5c
FBSDKCoreKit: a5f384db2e9ee84e98494fed8f983d2bd79accff
FBSDKCoreKit_Basics: d35c775aaf243a2d731dfae7be3a74b1987285ab
FBSDKLoginKit: f8ca5f7ab7c4e5b93e729d94975b0db7fcc511ed
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_facebook_auth: 3fdaeec95ae1042ba587f8f499b998ac3fbc3fb3
flutter_secure_storage: 23fc622d89d073675f2eaa109381aefbcf5a49be
path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c
flutter_facebook_auth: 4fa1dc3fa624284a5ddfdf9e4a2b7945b3835949
flutter_secure_storage: d33dac7ae2ea08509be337e775f6b59f1ff45f12
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2
url_launcher_ios: bbd758c6e7f9fd7b5b1d4cde34d2b95fcce5e812
url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe

PODFILE CHECKSUM: 3abe3ee81d8e1bcf71c9b55258bce7758dc971eb

COCOAPODS: 1.14.3
COCOAPODS: 1.15.2
4 changes: 2 additions & 2 deletions facebook_auth/ios/flutter_facebook_auth.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'flutter_facebook_auth'
s.version = '7.0.0'
s.version = '7.0.1'
s.summary = 'Plugin to Facebook authentication for iOS in your Flutter app'
s.description = <<-DESC
Plugin to Facebook authentication for iOS in your Flutter app
Expand All @@ -18,7 +18,7 @@ Pod::Spec.new do |s|


# s.dependency 'FBSDKCoreKit', '~> 15.1.0'
s.dependency 'FBSDKLoginKit', '~> 17.0.0'
s.dependency 'FBSDKLoginKit', '~> 17.0.2'
s.platform = :ios, '11.0'

# Flutter.framework does not contain a i386 slice.
Expand Down
2 changes: 1 addition & 1 deletion facebook_auth/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_facebook_auth
description: The easiest way to add facebook login to your flutter app. Feature includes getting user information, profile picture and more. This plugin also supports Web and macOS.
version: 7.0.0
version: 7.0.1
homepage: https://github.com/darwin-morocho/flutter-facebook-auth

environment:
Expand Down
31 changes: 0 additions & 31 deletions website/docs/app-tracking-transparency.md
Original file line number Diff line number Diff line change
@@ -1,32 +1 @@
# App Tracking Transparency

Since **iOS 14.5** all apps that they want to track the user activity to share data across others providers needs to request
the **AppTrackingTransparency** permission.

If you want to track the user activity after the login process follow the next steps.

In your `Info.plist` add the `FacebookAutoLogAppEventsEnabled` key only if you don't have it and set the value to `false`
```
<key>FacebookAutoLogAppEventsEnabled</key>
<false/>
```
Also if you don't have the `NSUserTrackingUsageDescription` key you need to add it
```
<key>NSUserTrackingUsageDescription</key>
<string>Your reason, why you want to track the user</string>
```

Next you need to ask to the user about the **AppTrackingTransparency** permission. To do that you can use [permission_handler](https://pub.dev/packages/permission_handler)

```dart
final status = await Permission.appTrackingTransparency.request();
if (status == PermissionStatus.granted) {
await FacebookAuth.i.autoLogAppEventsEnabled(true);
print("isAutoLogAppEventsEnabled:: ${await FacebookAuth.i.isAutoLogAppEventsEnabled}");
}
```

You can use `FacebookAuth.i.isAutoLogAppEventsEnabled` to check if the AutoLogAppEvents are enabled.


> For more info check the example folder.
3 changes: 2 additions & 1 deletion website/docs/ios.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,5 @@ For more info check
https://github.com/darwin-morocho/flutter-facebook-auth/issues/261
https://github.com/darwin-morocho/flutter-facebook-auth/issues/6
:::
:::
21 changes: 21 additions & 0 deletions website/docs/login.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,27 @@ final LoginResult result = await FacebookAuth.instance.login(
// )
```

::: INFO
# App Tracking Transparency

Since **iOS 17** apple all iOS apps must request the **AppTrackingTransparency** permission before the facebook login.

If the user has not granted the AdvertiserTracking permission, the login process will now enter a [Limited Login mode](https://developers.facebook.com/docs/facebook-login/limited-login).


In your `Info.plist` add the `NSUserTrackingUsageDescription` key only if you don't have it.
```
<key>NSUserTrackingUsageDescription</key>
<string>Your reason, why you want to track the user</string>
```

Next you need to ask to the user about the **AppTrackingTransparency** permission. To do that you can use [permission_handler](https://pub.dev/packages/permission_handler)

```dart
await Permission.appTrackingTransparency.request();
final LoginResult result = await FacebookAuth.instance.login();
```
:::

## BREAKING CHANGES TO SUPPORT THE LIMITED LOGIN
- iOS: Added `nonce` parameter in `login` function.
Expand Down

0 comments on commit 1135e83

Please sign in to comment.