Search Unity

Questions about Facebook-Unity plugin

Discussion in 'iOS and tvOS' started by clintwilde, May 14, 2017.

  1. clintwilde

    clintwilde

    Joined:
    Jun 7, 2016
    Posts:
    7
    I am a unity / Facebook sdk newby, but did read through the documentation pretty thoroughly and sill have questions.

    My use case: I want to be able to share a link that will redirect users to install the game on their specific device, or open it if it’s already installed.

    Question1: I have a game already published, called BulletForce. We created an iOS and an Android app in the quickstart (https://developers.facebook.com/quickstarts) using the correct appID, etc from the app store/play store for each platform, then copied the app link to my code like this:

    FB.Mobile.AppInvite(
    new Uri("https://fb.me/1850746895190361"),
    new Uri("https://pbs.twimg.com/profile_images/800093942884671488/kP0xJwJB.jpg"),
    AppInviteCallback

    Then I compiled and deployed it I run it and invite users, the link that is posted to Facebook is the link to the demo App, not my actual game. Why is it redirecting to the sample app instead of the the actual games?

    Question 2: I don’t understand the need for a custom url scheme. I just used the default: myapp://sample. Is that correct? I do not need to create a deep link inside the game, so why do I need this custom url?

    Question3: When I used the sample app to invite one of my FB friends to install the app, that friend did to receive my invite at all. Is this because my demo app is still in development? Or could it be because my friend already has the game installed? Please tell me why my FB friend cannot see my invites.

    Thank you for your help,
    Clint
     
  2. clintwilde

    clintwilde

    Joined:
    Jun 7, 2016
    Posts:
    7
    Anyone have an idea on this?
     
  3. cstlmode

    cstlmode

    Joined:
    Dec 2, 2014
    Posts:
    88
    hello ,
    you need custom url scheme in case you have a game on 2 stores ,
    you will be sure that the friend invited will receive a link to the store corresponding to his device ," it will not send a play store link to an IOS user and vice versa "
    about question 3 , the friend invited will not receive an invite unless he is on his mobile device , doesn't work for desktop as far as i know