Facebook friend invitation for game download

I’m going to send facebook invite message with image for downloading my game.
How to do I ?

Hey @tianxinxing

Please check this -

static void inviteFriends ( const std::string & app_link_url ,
                            const std::string & preview_image_url ) ; 

You can provide both an app link URL and an image URL to your invite.

NOTE:
Facebook doesn’t allow direct redirection to any appstore link
so, if you give your app link as - play.google.com/com.example.com
it simply wont work, as it it against FB policy.

So, you need to generate an app link url from facebook.
please check this link for more detials -
https://developers.facebook.com/docs/applinks

You can also provide an image link to show up in your invites, as demanded by the second parameter of the API call.

Best,
Pabitra

Thanks for you reply.

But I’d like to send invite message to only some friends, not all friends.
So I’m using appRequest method.
I saw redirectory url as parameter for this method.
What is it and how to use it ?