Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

Update Facebook SDK 4.31.1 for iOS 11 #634

Merged
merged 3 commits into from
Mar 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ Share Dialog:
share_feedWeb: true, // iOS only
}

For iOS, the default dialog mode is [`FBSDKShareDialogModeAutomatic`](https://developers.facebook.com/docs/reference/ios/current/constants/FBSDKShareDialogMode/). You can share that by adding a specific dialog mode parameter. The available share dialog modes are: `share_sheet`, `share_feedBrowser`, `share_native` and `share_feedWeb`. [Read more about share dialog modes](https://developers.facebook.com/docs/reference/ios/current/constants/FBSDKShareDialogMode/)
#### iOS

The default dialog mode is [`FBSDKShareDialogModeAutomatic`](https://developers.facebook.com/docs/reference/ios/current/constants/FBSDKShareDialogMode/). You can share that by adding a specific dialog mode parameter. The available share dialog modes are: `share_sheet`, `share_feedBrowser`, `share_native` and `share_feedWeb`. [Read more about share dialog modes](https://developers.facebook.com/docs/reference/ios/current/constants/FBSDKShareDialogMode/)

`caption`, `description` and `picture` were deprecated in Facebok API [v2.9](https://developers.facebook.com/docs/graph-api/changelog/version2.9#gapi-deprecate) and therefore not supported anymore on iOS

Game request:

Expand Down
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.
8 changes: 8 additions & 0 deletions src/ios/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ FBSDK_EXTERN NSString *const FBSDKAppEventNameViewedContent;
of methods on `FBSDKAppEvents`. Common event names are provided in the `FBAppEventName*` constants.
*/

/**
* Parameter key used to specify data for the one or more pieces of content being logged about.
* Data should be a JSON encoded string.
* Example:
* "[{\"id\": \"1234\", \"quantity\": 2, \"item_price\": 5.99}, {\"id\": \"5678\", \"quantity\": 1, \"item_price\": 9.99}]"
*/
FBSDK_EXTERN 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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@
- Parameter annotation: The annotation as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:].

- Returns: YES if the url was intended for the Facebook SDK, NO if not.
*/
*/
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation;

#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_9_3
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_9_0
/**
Call this method from the [UIApplicationDelegate application:openURL:options:] method
of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction
Expand Down
2 changes: 1 addition & 1 deletion src/ios/FBSDKCoreKit.framework/Headers/FBSDKConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ FBSDK_EXTERN NSString *const FBSDKErrorArgumentCollectionKey;
FBSDK_EXTERN NSString *const FBSDKErrorArgumentNameKey;

/**
The userInfo key for the invalid argument value for errors with FBSDKInvalidArgumentErrorCode.
The userInfo key for the invalid argument value for errors with FBSDKInvalidArgumentErrorCode.
*/
FBSDK_EXTERN NSString *const FBSDKErrorArgumentValueKey;

Expand Down
4 changes: 2 additions & 2 deletions src/ios/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@
#import <FBSDKCoreKit/FBSDKDeviceViewControllerBase.h>
#endif

#define FBSDK_VERSION_STRING @"4.22.1"
#define FBSDK_TARGET_PLATFORM_VERSION @"v2.9"
#define FBSDK_VERSION_STRING @"4.31.1"
#define FBSDK_TARGET_PLATFORM_VERSION @"v2.11"
14 changes: 14 additions & 0 deletions src/ios/FBSDKCoreKit.framework/Headers/FBSDKUtility.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,18 @@
*/
+ (NSString *)URLEncode:(NSString *)value;

/**
Creates a timer using Grand Central Dispatch.
- Parameter interval: The interval to fire the timer, in seconds.
- Parameter block: The code block to execute when timer is fired.
- Returns: The dispatch handle.
*/
+ (dispatch_source_t)startGCDTimerWithInterval:(double)interval block:(dispatch_block_t)block;

/**
Stop a timer that was started by startGCDTimerWithInterval.
- Parameter timer: The dispatch handle received from startGCDTimerWithInterval.
*/
+ (void)stopGCDTimer:(dispatch_source_t)timer;

@end
Binary file modified src/ios/FBSDKCoreKit.framework/Info.plist
Binary file not shown.
Binary file modified src/ios/FBSDKLoginKit.framework/FBSDKLoginKit
Binary file not shown.
2 changes: 1 addition & 1 deletion src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ typedef NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior)
- Parameter result: The results of the login
- Parameter error: The error (if any) from the login
*/
- (void) loginButton:(FBSDKLoginButton *)loginButton
- (void)loginButton:(FBSDKLoginButton *)loginButton
didCompleteWithResult:(FBSDKLoginManagerLoginResult *)result
error:(NSError *)error;

Expand Down
Binary file modified src/ios/FBSDKLoginKit.framework/Info.plist
Binary file not shown.
Binary file modified src/ios/FBSDKMessengerShareKit.framework/FBSDKMessengerShareKit
Binary file not shown.
Binary file modified src/ios/FBSDKMessengerShareKit.framework/Info.plist
Binary file not shown.
Binary file modified src/ios/FBSDKShareKit.framework/FBSDKShareKit
Binary file not shown.
32 changes: 17 additions & 15 deletions src/ios/FBSDKShareKit.framework/Headers/FBSDKAppInviteDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,65 +24,67 @@
@protocol FBSDKAppInviteDialogDelegate;

/**
A dialog for sending App Invites.
A dialog for sending App Invites.
*/
@interface FBSDKAppInviteDialog : NSObject

/**
Convenience method to show a FBSDKAppInviteDialog
Convenience method to show a FBSDKAppInviteDialog
- Parameter viewController: A UIViewController to present the dialog from.
- Parameter content: The content for the app invite.
- Parameter delegate: The receiver's delegate.
*/
- Warning: This method is deprecated.
*/
+ (instancetype)showFromViewController:(UIViewController *)viewController
withContent:(FBSDKAppInviteContent *)content
delegate:(id<FBSDKAppInviteDialogDelegate>)delegate;
delegate:(id<FBSDKAppInviteDialogDelegate>)delegate
__attribute__ ((deprecated("App Invites no longer supported")));


/**

- Warning:use showFromViewController:withContent:delegate: instead
- Warning:use showFromViewController:withContent:delegate: instead
*/
+ (instancetype)showWithContent:(FBSDKAppInviteContent *)content delegate:(id<FBSDKAppInviteDialogDelegate>)delegate
__attribute__ ((deprecated("use showFromViewController:withContent:delegate: instead")));

/**
A UIViewController to present the dialog from.
A UIViewController to present the dialog from.

If not specified, the top most view controller will be automatically determined as best as possible.
*/
@property (nonatomic, weak) UIViewController *fromViewController;

/**
The receiver's delegate or nil if it doesn't have a delegate.
The receiver's delegate or nil if it doesn't have a delegate.
*/
@property (nonatomic, weak) id<FBSDKAppInviteDialogDelegate> delegate;

/**
The content for app invite.
The content for app invite.
*/
@property (nonatomic, copy) FBSDKAppInviteContent *content;

/**
A Boolean value that indicates whether the receiver can initiate an app invite.
A Boolean value that indicates whether the receiver can initiate an app invite.

May return NO if the appropriate Facebook app is not installed and is required or an access token is
required but not available. This method does not validate the content on the receiver, so this can be checked before
building up the content.

- See:validateWithError:
- See:validateWithError:
- Returns: YES if the receiver can show the dialog, otherwise NO.
*/
- (BOOL)canShow;

/**
Begins the app invite from the receiver.
Begins the app invite from the receiver.
- Returns: YES if the receiver was able to show the dialog, otherwise NO.
*/
- (BOOL)show;

/**
Validates the content on the receiver.
Validates the content on the receiver.
- Parameter errorRef: If an error occurs, upon return contains an NSError object that describes the problem.
- Returns: YES if the content is valid, otherwise NO.
*/
Expand All @@ -91,7 +93,7 @@ __attribute__ ((deprecated("use showFromViewController:withContent:delegate: ins
@end

/**
A delegate for FBSDKAppInviteDialog.
A delegate for FBSDKAppInviteDialog.

The delegate is notified with the results of the app invite as long as the application has permissions to
receive the information. For example, if the person is not signed into the containing app, the shower may not be able
Expand All @@ -100,14 +102,14 @@ __attribute__ ((deprecated("use showFromViewController:withContent:delegate: ins
@protocol FBSDKAppInviteDialogDelegate <NSObject>

/**
Sent to the delegate when the app invite completes without error.
Sent to the delegate when the app invite completes without error.
- Parameter appInviteDialog: The FBSDKAppInviteDialog that completed.
- Parameter results: The results from the dialog. This may be nil or empty.
*/
- (void)appInviteDialog:(FBSDKAppInviteDialog *)appInviteDialog didCompleteWithResults:(NSDictionary *)results;

/**
Sent to the delegate when the app invite encounters an error.
Sent to the delegate when the app invite encounters an error.
- Parameter appInviteDialog: The FBSDKAppInviteDialog that completed.
- Parameter error: The error.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
//
// You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
// copy, modify, and distribute this software in source code or binary form for use
// in connection with the web services and APIs provided by Facebook.
//
// As with any software that integrates with the Facebook platform, your use of
// this software is subject to the Facebook Developer Principles and Policies
// [http://developers.facebook.com/policy/]. This copyright notice shall be
// included in all copies or substantial portions of the software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

#import <Foundation/Foundation.h>

#import <FBSDKCoreKit/FBSDKCopying.h>

/**
* A container of arguments for a camera effect.
* An argument is a NSString identified by a NSString key.
*/
@interface FBSDKCameraEffectArguments : NSObject <FBSDKCopying, NSSecureCoding>

/**
Sets a string argument in the container.
- Parameter string: The argument
- Parameter key: The key for the argument
*/
- (void)setString:(NSString *)string forKey:(NSString *)key;

/**
Gets a string argument from the container.
- Parameter key: The key for the argument
- Returns: The string value or nil
*/
- (NSString *)stringForKey:(NSString *)key;

/**
Sets a string array argument in the container.
- Parameter array: The array argument
- Parameter key: The key for the argument
*/
- (void)setArray:(NSArray<NSString *> *)array forKey:(NSString *)key;

/**
Gets an array argument from the container.
- Parameter key: The key for the argument
- Returns: The array argument
*/
- (NSArray *)arrayForKey:(NSString *)key;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
//
// You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
// copy, modify, and distribute this software in source code or binary form for use
// in connection with the web services and APIs provided by Facebook.
//
// As with any software that integrates with the Facebook platform, your use of
// this software is subject to the Facebook Developer Principles and Policies
// [http://developers.facebook.com/policy/]. This copyright notice shall be
// included in all copies or substantial portions of the software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

#import <UIKit/UIKit.h>

#import <FBSDKCoreKit/FBSDKCopying.h>

/**
* A container of textures for a camera effect.
* A texture for a camera effect is an UIImages identified by a NSString key.
*/
@interface FBSDKCameraEffectTextures : NSObject <FBSDKCopying, NSSecureCoding>

/**
Sets the image for a texture key.
- Parameter image: The UIImage for the texture
- Parameter name: The key for the texture
*/
- (void)setImage:(UIImage *)image forKey:(NSString *)key;

/**
Gets the image for a texture key.
- Parameter name: The key for the texture
- Returns: The texture UIImage or nil
*/
- (UIImage *)imageForKey:(NSString *)key;

@end
2 changes: 2 additions & 0 deletions src/ios/FBSDKShareKit.framework/Headers/FBSDKLikeButton.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@
#import <FBSDKShareKit/FBSDKLiking.h>

/**
Warning: This class is deprecated.
A button to like an object.

Tapping the receiver will invoke an API call to the Facebook app through a fast-app-switch that allows
the object to be liked. Upon return to the calling app, the view will update with the new state. If the
currentAccessToken has "publish_actions" permission and the object is an Open Graph object, then the like can happen
seamlessly without the fast-app-switch.
*/
__attribute__ ((deprecated))
@interface FBSDKLikeButton : FBSDKButton <FBSDKLiking>

/**
Expand Down
3 changes: 2 additions & 1 deletion src/ios/FBSDKShareKit.framework/Headers/FBSDKLikeControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,15 @@ typedef NS_ENUM(NSUInteger, FBSDKLikeControlStyle)
FBSDK_EXTERN NSString *NSStringFromFBSDKLikeControlStyle(FBSDKLikeControlStyle style);

/**

Warning: This class is deprecated.
UI control to like an object in the Facebook graph.


Taps on the like button within this control will invoke an API call to the Facebook app through a
fast-app-switch that allows the user to like the object. Upon return to the calling app, the view will update
with the new state and send actions for the UIControlEventValueChanged event.
*/
__attribute__ ((deprecated))
@interface FBSDKLikeControl : UIControl <FBSDKLiking>

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
//
// You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
// copy, modify, and distribute this software in source code or binary form for use
// in connection with the web services and APIs provided by Facebook.
//
// As with any software that integrates with the Facebook platform, your use of
// this software is subject to the Facebook Developer Principles and Policies
// [http://developers.facebook.com/policy/]. This copyright notice shall be
// included in all copies or substantial portions of the software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

#import <Foundation/Foundation.h>

#import <FBSDKShareKit/FBSDKCameraEffectArguments.h>
#import <FBSDKShareKit/FBSDKCameraEffectTextures.h>
#import <FBSDKShareKit/FBSDKSharingContent.h>

/**
A model for content to share with a Facebook camera effect.
*/
@interface FBSDKShareCameraEffectContent : NSObject <FBSDKSharingContent>

/**
ID of the camera effect to use.
*/
@property (nonatomic, copy) NSString *effectID;

/**
Arguments for the effect.
*/
@property (nonatomic, copy) FBSDKCameraEffectArguments *effectArguments;

/**
Textures for the effect.
*/
@property (nonatomic, copy) FBSDKCameraEffectTextures *effectTextures;

/**
Compares the receiver to another camera effect content.
- Parameter content: The other content
- Returns: YES if the receiver's values are equal to the other content's values; otherwise NO
*/
- (BOOL)isEqualToShareCameraEffectContent:(FBSDKShareCameraEffectContent *)content;

@end
Loading