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

retrieve Facebook app request ID from FB.GetAppLink result callback

Discussion in 'Scripting' started by cstlmode, Jul 30, 2017.

  1. cstlmode

    cstlmode

    Joined:
    Dec 2, 2014
    Posts:
    88
    Hello ,
    i'm wondering what is the best way to retrieve an app request ID from an Iapp link result , i use unity facebook sdk , and when i use the code provided in facebook documentation section , this one i mean
    https://developers.facebook.com/…/ref…/current/FB.GetAppLink
    Code (CSharp):
    1. FB.GetAppLink(DeepLinkCallback);
    2.  
    3. void DeepLinkCallback(IAppLinkResult result) {
    4. if(!String.IsNullOrEmpty(result.Url)) {
    5. var index = (new Uri(result.Url)).Query.IndexOf("request_ids");
    6. Debug.Log("index "+index );
    7. if(index != -1) {
    8. //
    9. }
    10. }
    11. }
    i get index =-1
    i have attached an image of what result.RawResult looks like ,
    please i need some help
     

    Attached Files:

  2. cstlmode

    cstlmode

    Joined:
    Dec 2, 2014
    Posts:
    88