Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Third Party Invite facebook friend to exact PUN room

Discussion in 'Multiplayer' started by novaVision, Apr 3, 2017.

  1. novaVision

    novaVision

    Joined:
    Nov 9, 2014
    Posts:
    492
    Hi,

    I am using Photon Unity Networking.
    I am trying to investigate that case and understand, how that invitations works. I found that facebook sdk got 2 methods to make a game request:
    1. FB.AppRequest (require facebook login)
    2. FB.Mobile.AppInvite (do not require facebook login and works through the app)
    For me 2nd option is better, because user could be login using another method before (GameCenter/GooglePlay) but I am not sure that will work. How I understood AppInvite is only an invitation to download the app using exact link, not keeping any room name parameter.

    But the problem that even using 1st option and sending room name in data parameter I can't understand, how the opened app can grab that parameter? I see there are two cases
    1. if user don't have a game installed yet
    2. if game app already installed
    What will happens in both cases? Can I keep room name somewhere even if invited friend need to download the game first?
     
  2. babji3

    babji3

    Joined:
    May 28, 2015
    Posts:
    179
    I want also same stuff for my game..