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

Help with Facebook Deep Linking

Discussion in 'Editor & General Support' started by Gamrek, Dec 16, 2014.

  1. Gamrek

    Gamrek

    Joined:
    Sep 28, 2010
    Posts:
    164
    Hi,

    Has anyone tried to deep linking with Facebook SDK with Unity? Can anyone help me with the following?

    So I sent a request out and I got this on my iPad:

    Request Sent {"to":["54742366872XXXX"],"request":"1521526728123676"}

    And when I opened the App through my Facebook notification on iPod, and called deep linking. I got this:

    fb170085486532707://authorize/#target_url=http%3A%2F%2Fm.facebook.com%2Fappcenter%2Fjbislands%3Ffbs%3D1001%26request_ids%3D322759461248823%252C333157203553454%26ref%3Dnotif%26app_request_type%3Duser_to_user

    I don't see any connection between those number. And when I run what Facebook provide as an example:

    Code (CSharp):
    1. void DeepLinkCallback(FBResult response) {
    2.     if(response.Text != null) {
    3.         var index = (new Uri(response.Text)).Query.IndexOf("request_ids");
    4.         if(index != -1) {
    5.             // ...have the user interact with the friend who sent the request,
    6.             // perhaps by showing them the gift they were given, taking them
    7.             // to their turn in the game with that friend, etc.
    8.         }
    9.     }
    10. }
    I get -1 for index. Can anyone tell me how to read this deep link thing? Thank you
     
    Last edited: Dec 16, 2014
  2. cstlmode

    cstlmode

    Joined:
    Dec 2, 2014
    Posts:
    88