Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook deferred deep link on iOS not working

Everything is ok when I'm using Facebook App Ads Helper – Deep Link Tester. Application will be downloaded from the App Store, URL will be fetched and handled correctly.

But if I try to test it from my real Facebook Ad, application will be also downloaded from the App Store, but the fetched URL is always nil.

In situation when application is already installed on the device, URL will be correctly passed to my app and handled.

In the application delegate method I am fetching deferred deep link like that:

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
    //Another code
    FBSDKAppLinkUtility.fetchDeferredAppLink({ (URL, error) -> Void in
        if error != nil {
            //Handle error
        }
        if URL != nil {
            application.openURL(URL)
        }
    })
    return true
}

func application(application: UIApplication, openURL URL: NSURL, sourceApplication: String?, annotation: AnyObject?) -> Bool {
    let result = self.handleURL(URL)
    return result
}

I checked all installation guidelines several times, it seems that everything is ok.

is there any idea?

like image 328
Aist Marabu Avatar asked Oct 20 '22 02:10

Aist Marabu


1 Answers

It seems that's everything is ok and it is my mistake in testing of the deep links. I tested it via Ad Preview, that didn't track user footprint. So Facebook deep links are working correctly now, we confirmed it by Mixpanel analytics.

like image 70
Aist Marabu Avatar answered Oct 31 '22 01:10

Aist Marabu