FBSDKMessengerShareButton
A more recent version of this class is available. Check out the latest version.

Provides a helper method to return a UIButton intended for sharing to Messenger

Superclass:NSObject
Declared in:FBSDKMessengerShareButton.h
Class Methods
circularButtonWithStyle:

Returns a circular UIButton customized for sharing to Messenger of default size

ParameterDescription
style

Specifies how the button should look

+ (UIButton *) circularButtonWithStyle:(FBSDKMessengerShareButtonStyle)style;
circularButtonWithStyle:width:

Returns a circular UIButton customized for sharing to Messenger

ParameterDescription
style

Specifies how the button should look

width

The desired frame width (and height) of this button.

+ (UIButton *)
circularButtonWithStyle: (FBSDKMessengerShareButtonStyle)style
width: (CGFloat)width;
Discussion:

This button's asset is drawn as a vector such that it scales appropriately using the width parameter as a hint. This hint is to prevent button resizing artifacts.

rectangularButtonWithStyle:

Returns a rounded rectangular UIButton customized for sharing to Messenger

ParameterDescription
style

Specifies how the button should look

+ (UIButton *) rectangularButtonWithStyle:(FBSDKMessengerShareButtonStyle)style;
Discussion:

This button can be resized after creation There is 1 string in the implemention of this button which needs to be translated by your app: NSLocalizedString(@"Send", @"Button label for sending a message")

Typedefs
NS_ENUM

Defines what visual style a UIButton should have

typedef NS_ENUM(NSUInteger, FBSDKMessengerShareButtonStyle) {
FBSDKMessengerShareButtonStyleBlue = 0, FBSDKMessengerShareButtonStyleWhite =
1, FBSDKMessengerShareButtonStyleWhiteBordered = 2,
};