简体   繁体   中英

Facebook Messenger SDK to share app Invite to Friends iOS

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 !

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,

  1. Reply with your app, If they have installed the app as well,
  2. Install the App, if they not have done so yet.

These kind of apps are typically "reaction" apps; (animated) images that are nice in chat-threads.

I hope this clarifies the possibilities for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM