Reputation: 284
In my app i need to invite the facebook friends to download an application with Facebook Messenger, i am able to share image, gif, video .
How can i share text of link to download application from Messenger ?
The code i use to share image is :
if ([FBSDKMessengerSharer messengerPlatformCapabilities] & FBSDKMessengerPlatformCapabilityImage) {
UIImage *image = [UIImage imageNamed:@"Deepika-Padukone.png"];
[FBSDKMessengerSharer shareImage:image withOptions:nil];
}
Help me out please !
Upvotes: 0
Views: 2137
Reputation: 3576
I'm not sure what you exactly want to do, but it seems you might be confused.
The FBSDKMessengerSharer
lets you share content from your app, into Messenger. The content can be (animated) images, audio and video. So for example: if you have an app with images, you can let somebody share that image with somebody else, via Messenger.
The FBSDKMessengerSharer
does not let you share applications/download links. For that, you can use App Requests or Game Requests.
On the other hand, the Messenger API lets you share and reply content from within Messenger. Your application can share to Messenger and people will be able to,
These kind of apps are typically "reaction" apps; (animated) images that are nice in chat-threads.
I hope this clarifies the possibilities for you.
Upvotes: 4