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

Updates from upstream + MABS compatibility #2

Open
wants to merge 108 commits into
base: master
Choose a base branch
from
Open
Changes from 4 commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
bc44f39
Avoid FB prompt if required permission declined
simokhalil Nov 23, 2016
ef5f509
Update facebook-native.js
antonfire Nov 28, 2016
e5544b5
Update FacebookConnectPlugin.h
antonfire Nov 28, 2016
27aef95
Update FacebookConnectPlugin.m
antonfire Nov 28, 2016
254fa25
Update README.md
antonfire Nov 28, 2016
d6558c3
Update README.md
antonfire Nov 28, 2016
3c75c4b
Updated outdated link to repo/docs
jQrgen Dec 12, 2016
62a5d8f
upgrade to the last facebook sdk + a fix
oak-tree Dec 20, 2016
fdea701
Fix link from contributing to troubleshooting
jkervine Feb 6, 2017
f4e8631
Add fix documentation
jkervine Feb 6, 2017
defdef2
Proper linking
jkervine Feb 6, 2017
f27d522
Merge pull request #434 from jkervine/document_ios10_login_issue
jeduan Feb 8, 2017
bca6485
Merge pull request #398 from CNATURE/master
jeduan Feb 8, 2017
6ac3baf
Merge pull request #392 from jQrgen/patch-1
jeduan Feb 8, 2017
57a58e3
Merge pull request #375 from simokhalil/master
jeduan Feb 8, 2017
63aa299
Merge pull request #382 from antonfire/master
jeduan Feb 8, 2017
a88f4d1
1.8.0
jeduan Feb 8, 2017
d7deb65
Added hashtag support (#418)
mpk2 Feb 9, 2017
7c0cc6b
Update plugin version in plugin.xml to 1.8.0 (#485)
jacquesdev May 16, 2017
6f05f70
ios sdk 4.22.0 (#481)
Alexious-sh May 16, 2017
c7219bd
SDK 4.22.1
jeduan May 16, 2017
d67a0fc
1.9.0
jeduan May 16, 2017
e9932dc
Update plugin version in plugin.xml to 1.9.0 (#509)
jacquesdev Jun 4, 2017
b5eadd1
Update plugin.xml to 1.9.1
jeduan Jun 4, 2017
3770c9c
1.9.1
jeduan Jun 4, 2017
5463d07
application:openURL needs to return BOOL value (#548)
vojtakopal Aug 25, 2017
6a8e6c9
Updated logPurchase to handle decimal values correctly. (#500)
Aug 25, 2017
3a3392c
Updated the ConnectPlugin so that it accepts multiple async requests …
RobertYoung Aug 25, 2017
0f2b695
Fix for facebook-browser.js (#561)
darkovac Sep 19, 2017
b99e247
Update Facebook SDK 4.31.1 for iOS 11 (#634)
peterpeterparker Mar 23, 2018
3be0474
Initial import
peterpeterparker Mar 24, 2018
a2c74db
Add notice for cordova-android >= 7 compatibility
peterpeterparker Apr 14, 2018
53e69ae
Spelling
peterpeterparker Apr 14, 2018
e6a9a43
Update for next version v1.10.0
peterpeterparker Apr 14, 2018
6f29de8
Add example to install previous version
peterpeterparker Apr 14, 2018
e9a84b9
Spelling
peterpeterparker Apr 14, 2018
d372cb7
Update iOS 11.3
peterpeterparker Apr 14, 2018
c598359
Release v1.10.0 - Update Facebook iOS SDK
peterpeterparker Apr 14, 2018
c09ddfd
Change sentences order
peterpeterparker Apr 14, 2018
0ccac44
Fix versioning
peterpeterparker Apr 15, 2018
fcbd511
Add ANDROID_SDK_VERSION preference (#646)
skaman Apr 21, 2018
bddac54
Add note regarding PR #646
peterpeterparker Apr 21, 2018
462949b
Format
peterpeterparker Apr 21, 2018
0fe5708
Open changelog v1.11.0
peterpeterparker Apr 21, 2018
61ee356
Format
peterpeterparker Apr 21, 2018
f0bee56
Format
peterpeterparker Apr 21, 2018
8756dc7
Format
peterpeterparker Apr 21, 2018
efffde9
#645: Remove App Invites
peterpeterparker Apr 21, 2018
bd2f91c
Next version 1.11.0
peterpeterparker Apr 21, 2018
21229fe
App Invites removal is a breaking change, next version 2.0.0
peterpeterparker Apr 21, 2018
c7a4cbc
Add notice for older Cordova CLI
peterpeterparker Apr 26, 2018
b594d32
#568: Fix null pointer exception crashing app after 2nd login
peterpeterparker Apr 28, 2018
be84f8b
#653: Update Facebook iOS SDK v4.33.0
peterpeterparker May 4, 2018
9535ae7
Release v2.1.0
peterpeterparker May 4, 2018
7bda783
Create issue_template.md (#668)
jeduan Jun 1, 2018
f3c7ffe
Typings and a bit of more details
peterpeterparker Jun 1, 2018
ec79844
Typings
peterpeterparker Jun 1, 2018
74bccb1
Update Facebook iOS SDK 4.34.0
peterpeterparker Jun 27, 2018
b7963e2
Release v2.2.0
peterpeterparker Jun 27, 2018
4bbddc9
Update Facebook iOS SDK 4.35.0
peterpeterparker Aug 8, 2018
66c52d6
Update to v2.3.0
peterpeterparker Aug 8, 2018
2671526
Release v2.3.0
peterpeterparker Aug 12, 2018
e5c3aba
Update Facebook iOS SDK 4.36.0
peterpeterparker Sep 6, 2018
ef4aee9
Release v2.4.0
peterpeterparker Sep 6, 2018
114a93a
refactor(#706): Rename ANDROID_SDK_VERSION to FACEBOOK_ANDROID_SDK_VE…
peterpeterparker Sep 13, 2018
b3efd52
doc(#708): Add a note regarding the Graph API version
peterpeterparker Sep 13, 2018
b76b207
feat(#708): Sync Facebook SDK for iOS and Android
peterpeterparker Sep 16, 2018
cb1cebf
lib(#713): update Facebook SDK for iOS
peterpeterparker Oct 10, 2018
8c14a79
lib(#713): use Facebook SDK v4.37.0 for Android too
peterpeterparker Oct 10, 2018
e0fa179
release: v3.1.0
peterpeterparker Oct 10, 2018
71524c3
lib(#725): update Facebook SDK v4.38.1 for iOS
peterpeterparker Nov 21, 2018
6c53660
lib(#725): update Facebook SDK v4.38.1 for Android
peterpeterparker Nov 21, 2018
bb749c0
release: v3.2.0
peterpeterparker Nov 21, 2018
6dadb88
merge: release v3.2.0 and Facebook SDK v4.38.1
peterpeterparker Nov 21, 2018
2d782b7
Support for cordova-android v7 without workaround (#716)
adipascu Dec 15, 2018
0d71c97
release: v3.3.0
peterpeterparker Dec 15, 2018
cf4728a
release: v4.0.0 (replace v3.3.0 as it might be a breaking change for …
peterpeterparker Dec 15, 2018
dcc02c3
Enable app events to be sent from the pixel for both iOS and Android …
msencer Jan 17, 2019
53de8f9
feat(#678): add FB key to log msg
peterpeterparker Jan 17, 2019
5848a81
release: v4.1.0
peterpeterparker Jan 17, 2019
bcca4cb
lib: update Facebook SDK v4.40.0
peterpeterparker Feb 9, 2019
1c3ce00
merge(#743): Facebook SDK v4.40.0
peterpeterparker Feb 9, 2019
f2b73aa
release: v4.2.0
peterpeterparker Feb 9, 2019
eaa7236
Urgent - IOS crash when enableHybridAppEvents is enabled #745 (#746)
regevbr Feb 11, 2019
0e2dc48
release: v4.2.1
peterpeterparker Feb 11, 2019
03ca9ab
Fix openUrl handling bugs and add support for cordova-ios-5 (#751)
guylando Jun 29, 2019
aae18bd
release: v5.0.0
peterpeterparker Jun 29, 2019
96e09e3
feat(#639): use Cocoapods and bump up Facebook SDK version (#792)
peterpeterparker Aug 19, 2019
363befe
release: v6.0.0 (Cocoapods for iOS dependencies)
peterpeterparker Aug 19, 2019
d9d5d86
Update iOS and Android SDKs (#805)
francescotonini Oct 2, 2019
8512492
release: v6.1.0
peterpeterparker Oct 2, 2019
690d9f8
Update plugin.xml (#808)
sunda-amami Oct 9, 2019
5094ea9
doc: update iOS FB SDK v5.7.0
peterpeterparker Oct 9, 2019
601d3db
lib: update default FB SDK Android v5.5.2 (#809)
peterpeterparker Oct 9, 2019
24e021f
doc: cocoapods known erros (#810)
peterpeterparker Oct 9, 2019
1ef4942
release: v6.2.0
peterpeterparker Oct 9, 2019
8ef262c
Merge remote-tracking branch 'origin/master'
peterpeterparker Oct 9, 2019
9c50b61
Update to CocoaPods CDN (#848)
tetkosimi Feb 11, 2020
39cb5dd
feat: upgrade Facebook SDK iOS and Android (#849)
peterpeterparker Feb 11, 2020
89971d8
doc: add table of contents
peterpeterparker Feb 11, 2020
7a4a4e5
doc: update table of contents
peterpeterparker Feb 11, 2020
c372657
doc: add sample repo
peterpeterparker Feb 11, 2020
59318df
doc: add sample repo
peterpeterparker Feb 11, 2020
a9700a8
release: v6.3.0
peterpeterparker Feb 11, 2020
a5edc20
Fix hasAccessToken check (#853)
blackwolf12333 Mar 13, 2020
f153d69
release: v6.4.0
peterpeterparker Mar 13, 2020
5e45164
set min sdk to 21 as required by Mabs
izambasiron Jun 22, 2020
72cbad2
replace podfile tag with framework to comply with cordova cli 7.1
izambasiron Jun 23, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<a name="3.2.0"></a>
# [3.2.0](https://github.com/jeduan/cordova-plugin-facebook4/releases/tag/v3.2.0)

## Features

* **iOS:** Update Facebook iOS SDK v4.38.1 ([#725](https://github.com/jeduan/cordova-plugin-facebook4/issues/725) | [Facebook iOS SDK changelog](https://developers.facebook.com/docs/ios/change-log-4x) | Released: 1st November 2018)
* **Android:** Set per default usage of Facebook Android SDK v4.38.1 ([#725](https://github.com/jeduan/cordova-plugin-facebook4/issues/725) | [Facebook Android SDK changelog](https://developers.facebook.com/docs/android/change-log-4x) | Released: 1st November 2018)

<a name="3.1.0"></a>
# [3.1.0](https://github.com/jeduan/cordova-plugin-facebook4/releases/tag/v3.1.0)

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-facebook4",
"version": "3.1.0",
"version": "3.2.0",
"description": "Cordova Facebook SDK 4 Plugin",
"cordova": {
"id": "cordova-plugin-facebook4",
4 changes: 2 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-facebook4"
version="3.1.0">
version="3.2.0">

<name>Facebook Connect</name>

@@ -19,7 +19,7 @@

<preference name="APP_ID" />
<preference name="APP_NAME" />
<preference name="FACEBOOK_ANDROID_SDK_VERSION" default="4.37.0"/>
<preference name="FACEBOOK_ANDROID_SDK_VERSION" default="4.38.1"/>

<engines>
<!-- Requires > 3.5.0 because of the custom Framework tag for iOS [CB-6698] -->
Binary file modified src/ios/Bolts.framework/Bolts
Binary file not shown.
Binary file modified src/ios/Bolts.framework/Info.plist
Binary file not shown.
Binary file modified src/ios/FBSDKCoreKit.framework/FBSDKCoreKit
Binary file not shown.
26 changes: 20 additions & 6 deletions src/ios/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h
Original file line number Diff line number Diff line change
@@ -20,7 +20,8 @@

#import <FBSDKCoreKit/FBSDKCopying.h>
#import <FBSDKCoreKit/FBSDKGraphRequestConnection.h>
#import <FBSDKCoreKit/FBSDKMacros.h>

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0

/**
Notification indicating that the `currentAccessToken` has changed.
@@ -29,7 +30,20 @@
`FBSDKAccessTokenChangeOldKey` and
`FBSDKAccessTokenChangeNewKey`.
*/
FBSDK_EXTERN NSString *const FBSDKAccessTokenDidChangeNotification;
FOUNDATION_EXPORT NSNotificationName const FBSDKAccessTokenDidChangeNotification;

#else

/**
Notification indicating that the `currentAccessToken` has changed.

the userInfo dictionary of the notification will contain keys
`FBSDKAccessTokenChangeOldKey` and
`FBSDKAccessTokenChangeNewKey`.
*/
FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidChangeNotification;

#endif

/**
A key in the notification's userInfo that will be set
@@ -44,27 +58,27 @@ FBSDK_EXTERN NSString *const FBSDKAccessTokenDidChangeNotification;
of an access token, this key will also exist since the access token
is moving from a null state (no user) to a non-null state (user).
*/
FBSDK_EXTERN NSString *const FBSDKAccessTokenDidChangeUserID;
FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidChangeUserID;

/*
key in notification's userInfo object for getting the old token.

If there was no old token, the key will not be present.
*/
FBSDK_EXTERN NSString *const FBSDKAccessTokenChangeOldKey;
FOUNDATION_EXPORT NSString *const FBSDKAccessTokenChangeOldKey;

/*
key in notification's userInfo object for getting the new token.

If there is no new token, the key will not be present.
*/
FBSDK_EXTERN NSString *const FBSDKAccessTokenChangeNewKey;
FOUNDATION_EXPORT NSString *const FBSDKAccessTokenChangeNewKey;

/*
A key in the notification's userInfo that will be set
if and only if the token has expired.
*/
FBSDK_EXTERN NSString *const FBSDKAccessTokenDidExpire;
FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidExpire;


/**
131 changes: 78 additions & 53 deletions src/ios/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h
Original file line number Diff line number Diff line change
@@ -24,16 +24,23 @@

#import <FBSDKCoreKit/FBSDKGraphRequestConnection.h>

#import "FBSDKMacros.h"

@class FBSDKAccessToken;
@class FBSDKGraphRequest;

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0

/** NSNotificationCenter name indicating a result of a failed log flush attempt. The posted object will be an NSError instance. */
FOUNDATION_EXPORT NSNotificationName const FBSDKAppEventsLoggingResultNotification;

#else

/** NSNotificationCenter name indicating a result of a failed log flush attempt. The posted object will be an NSError instance. */
FBSDK_EXTERN NSString *const FBSDKAppEventsLoggingResultNotification;
FOUNDATION_EXPORT NSString *const FBSDKAppEventsLoggingResultNotification;

#endif

/** optional plist key ("FacebookLoggingOverrideAppID") for setting `loggingOverrideAppID` */
FBSDK_EXTERN NSString *const FBSDKAppEventsOverrideAppIDBundleKey;
FOUNDATION_EXPORT NSString *const FBSDKAppEventsOverrideAppIDBundleKey;

/**

@@ -100,70 +107,70 @@ typedef NS_ENUM(NSUInteger, FBSDKProductCondition)
*/

/** Log this event when the user has achieved a level in the app. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameAchievedLevel;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameAchievedLevel;

/** Log this event when the user has entered their payment info. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameAddedPaymentInfo;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameAddedPaymentInfo;

/** Log this event when the user has added an item to their cart. The valueToSum passed to logEvent should be the item's price. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameAddedToCart;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameAddedToCart;

/** Log this event when the user has added an item to their wishlist. The valueToSum passed to logEvent should be the item's price. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameAddedToWishlist;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameAddedToWishlist;

/** Log this event when a user has completed registration with the app. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameCompletedRegistration;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameCompletedRegistration;

/** Log this event when the user has completed a tutorial in the app. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameCompletedTutorial;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameCompletedTutorial;

/** Log this event when the user has entered the checkout process. The valueToSum passed to logEvent should be the total price in the cart. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameInitiatedCheckout;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameInitiatedCheckout;

/** Log this event when the user has rated an item in the app. The valueToSum passed to logEvent should be the numeric rating. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameRated;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameRated;

/** Log this event when a user has performed a search within the app. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameSearched;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameSearched;

/** Log this event when the user has spent app credits. The valueToSum passed to logEvent should be the number of credits spent. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameSpentCredits;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameSpentCredits;

/** Log this event when the user has unlocked an achievement in the app. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameUnlockedAchievement;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameUnlockedAchievement;

/** Log this event when a user has viewed a form of content in the app. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameViewedContent;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameViewedContent;

/** A telephone/SMS, email, chat or other type of contact between a customer and your business. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameContact;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameContact;

/** The customization of products through a configuration tool or other application your business owns. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameCustomizeProduct;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameCustomizeProduct;

/** The donation of funds to your organization or cause. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameDonate;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameDonate;

/** When a person finds one of your locations via web or application, with an intention to visit (example: find product at a local store). */
FBSDK_EXTERN NSString *const FBSDKAppEventNameFindLocation;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFindLocation;

/** The booking of an appointment to visit one of your locations. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameSchedule;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameSchedule;

/** The start of a free trial of a product or service you offer (example: trial subscription). */
FBSDK_EXTERN NSString *const FBSDKAppEventNameStartTrial;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameStartTrial;

/** The submission of an application for a product, service or program you offer (example: credit card, educational program or job).. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameSubmitApplication;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameSubmitApplication;

/** The start of a paid subscription for a product or service you offer. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameSubscribe;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameSubscribe;

/** Log this event when the user views an ad. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameAdImpression;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameAdImpression;

/** Log this event when the user clicks an ad. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameAdClick;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameAdClick;

/**
@methodgroup Predefined event name parameters for common additional information to accompany events logged through the `logEvent` family
@@ -176,60 +183,60 @@ FBSDK_EXTERN NSString *const FBSDKAppEventNameAdClick;
* Example:
* "[{\"id\": \"1234\", \"quantity\": 2, \"item_price\": 5.99}, {\"id\": \"5678\", \"quantity\": 1, \"item_price\": 9.99}]"
*/
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameContent;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameContent;

/** Parameter key used to specify an ID for the specific piece of content being logged about. Could be an EAN, article identifier, etc., depending on the nature of the app. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameContentID;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameContentID;

/** Parameter key used to specify a generic content type/family for the logged event, e.g. "music", "photo", "video". Options to use will vary based upon what the app is all about. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameContentType;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameContentType;

/** Parameter key used to specify currency used with logged event. E.g. "USD", "EUR", "GBP". See ISO-4217 for specific values. One reference for these is <http://en.wikipedia.org/wiki/ISO_4217>. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameCurrency;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameCurrency;

/** Parameter key used to specify a description appropriate to the event being logged. E.g., the name of the achievement unlocked in the `FBAppEventNameAchievementUnlocked` event. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameDescription;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameDescription;

/** Parameter key used to specify the level achieved in a `FBAppEventNameAchieved` event. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameLevel;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameLevel;

/** Parameter key used to specify the maximum rating available for the `FBAppEventNameRate` event. E.g., "5" or "10". */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameMaxRatingValue;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameMaxRatingValue;

/** Parameter key used to specify how many items are being processed for an `FBAppEventNameInitiatedCheckout` or `FBAppEventNamePurchased` event. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameNumItems;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameNumItems;

/** Parameter key used to specify whether payment info is available for the `FBAppEventNameInitiatedCheckout` event. `FBSDKAppEventParameterValueYes` and `FBSDKAppEventParameterValueNo` are good canonical values to use for this parameter. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNamePaymentInfoAvailable;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNamePaymentInfoAvailable;

/** Parameter key used to specify method user has used to register for the app, e.g., "Facebook", "email", "Twitter", etc */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameRegistrationMethod;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameRegistrationMethod;

/** Parameter key used to specify the string provided by the user for a search operation. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameSearchString;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameSearchString;

/** Parameter key used to specify whether the activity being logged about was successful or not. `FBSDKAppEventParameterValueYes` and `FBSDKAppEventParameterValueNo` are good canonical values to use for this parameter. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameSuccess;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameSuccess;

/*
@methodgroup Predefined values to assign to event parameters that accompany events logged through the `logEvent` family
of methods on `FBSDKAppEvents`. Common event parameters are provided in the `FBSDKAppEventParameterName*` constants.
*/

/** Yes-valued parameter value to be used with parameter keys that need a Yes/No value */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterValueYes;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterValueYes;

/** No-valued parameter value to be used with parameter keys that need a Yes/No value */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterValueNo;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterValueNo;

/** Parameter key used to specify the type of ad in an FBSDKAppEventNameAdImpression
* or FBSDKAppEventNameAdClick event.
* E.g. "banner", "interstitial", "rewarded_video", "native" */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameAdType;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameAdType;

/** Parameter key used to specify the unique ID for all events within a subscription
* in an FBSDKAppEventNameSubscribe or FBSDKAppEventNameStartTrial event. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameOrderID;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameOrderID;

/**

@@ -530,7 +537,7 @@ FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameOrderID;
+ (void)activateApp;

/*
* Push Notifications Registration
* Push Notifications Registration and Uninstall Tracking
*/

/**
@@ -677,16 +684,16 @@ FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameOrderID;
@param zip user's zip
@param country user's country
*/
+ (void)setUserEmail:(nullable NSString *)email
firstName:(nullable NSString *)firstName
lastName:(nullable NSString *)lastName
phone:(nullable NSString *)phone
dateOfBirth:(nullable NSString *)dateOfBirth
gender:(nullable NSString *)gender
city:(nullable NSString *)city
state:(nullable NSString *)state
zip:(nullable NSString *)zip
country:(nullable NSString *)country;
+ (void)setUserEmail:(NSString *)email
firstName:(NSString *)firstName
lastName:(NSString *)lastName
phone:(NSString *)phone
dateOfBirth:(NSString *)dateOfBirth
gender:(NSString *)gender
city:(NSString *)city
state:(NSString *)state
zip:(NSString *)zip
country:(NSString *)country;
/*
Returns the set user data else nil
*/
@@ -719,4 +726,22 @@ FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameOrderID;
+ (void)augmentHybridWKWebView:(WKWebView *)webView;
#endif

/*
* Unity helper functions
*/

/**

Set if the Unity is already initialized

@param isUnityInit whether Unity is initialized.

*/
+ (void)setIsUnityInit:(BOOL)isUnityInit;

/*
Send event binding to Unity
*/
+ (void)sendEventBindingsToUnity;

@end
Original file line number Diff line number Diff line change
@@ -66,7 +66,7 @@ typedef void (^FBSDKDeferredAppInviteHandler)(NSURL *url);
@warning This method is no longer available and will always return NO.
*/
+ (BOOL)fetchDeferredAppInvite:(FBSDKDeferredAppInviteHandler)handler
__attribute__((deprecated("This method is no longer available.")));;
DEPRECATED_MSG_ATTRIBUTE("This method is no longer available.");

/*
Call this method to fetch promotion code from the url, if it's present. This function
Loading