Play with facebook invited friends

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

User avatar
khokhani1510
Posts: 17
Joined: 06 Feb 2014, 11:08
Location: Gujarat, India
Contact:

Play with facebook invited friends

Postby khokhani1510 » 21 Jul 2021, 11:15

I am thinking about the way to achieve play with facebook friends feature.

How to play with the facebook invited friends?
Invitation goes with some room code data and upon accepting invitation user can join and play with friend.

For friends which are online I can use smartfoxserver.
But what about offline friend? How to send push notification to offline friends with room code data?

Thanks.
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Play with facebook invited friends

Postby Lapo » 21 Jul 2021, 14:13

Hi,
most of this functionality should be based on FB API, I think.
For example the push notification should be sent via FB Messenger API and you could send a reference to a specific Game Room (be it it's ID or name, since it's unique). You may also need to send the Zone name, if you're hosting multiple Zones in SFS2X.

When the users receives it he should be able to use those parameters to connect to SFS2X, login in the right Zone and join the Room.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
khokhani1510
Posts: 17
Joined: 06 Feb 2014, 11:08
Location: Gujarat, India
Contact:

Re: Play with facebook invited friends

Postby khokhani1510 » 22 Jul 2021, 07:29

Thanks for your quick reply.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 42 guests