Sign in to follow this  

Is "Invite friend to this server" possible using Facebook?

This topic is 687 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi!

I can't seem to find enough info and Facebook API/SDK seems a huge mess. I'm making a mobile game. What I want to do is add an in-game button "Invite friend to this server". When player clicks it, he would be asked to pick friends from his friends list. After that, they would get a deep-linked(I guess?) invite. After they accept it, if they don't have my game installed, they would be redirected to the app store and if they do have, the game would open up. After the game opens up, check if any invite was made and accepted. If it there was, connect to the specified server from the deep link.

Is it even possible using Facebook API/SDK or am I fantasising? Any tips or useful links?

Edited by zgintasz

Share this post


Link to post
Share on other sites
Yeah, your flow sounds exactly like something we've done where I work (we didn't use the post metadata to join a server, we used it to track what ratio of players actually followed those links).

I didn't work on it, so I don't remember the details of which calls you need to make, but I remember it works just like that. Sorry! I just know that it should be possible.

I'll do a quick search of what sounds familiar.

https://developers.facebook.com/docs/games/services/gamerequests

https://developers.facebook.com/docs/games/services/gamerequests#invitablefriends

https://developers.facebook.com/docs/app-invites/ios#app_links

(see the ?referral=12345 stuff; I think that's where you can place your server join information)

See the "Handling incoming links" sections of these pages:
https://developers.facebook.com/docs/applinks/ios
https://developers.facebook.com/docs/applinks/android Edited by Nypyren

Share this post


Link to post
Share on other sites

This topic is 687 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this