I have done some exploration and have found the following things, this is what I have done so far:
Implemented custom URL, like myApp://
Select both 'Send Notification' and 'Send Deferred' check marks.
Then you will get a notification to your facebook app.
8.Add bellow keys to your info.plist
CFBundleURLTypes
CFBundleURLSchemes
**Your URL Scheme**
**Your FB app id**
URL scheme Like "testScheme://......."
FB app id Like "fb........."
Now we can test 2 cases.
app already install in your device with deferred link implementation
New install
for 1st case, install your app and then click facebook notification, it is redirected to your app.
for 2nd case, For new installs
Uninstall your app and Connect your device to xcode
Then click deeplink facebook notification, it is redirected to appstore, don't install from appstore because your published app doesn't have app deep link implementation
Then you can run app from xcode, once it is installed, it is open your deeplink as 1st case.
Thats it....
Note: don't forgot to implement
- (void)applicationDidBecomeActive:(UIApplication *)application {
[FBSDKAppLinkUtility fetchDeferredAppLink:^(NSURL *url,NSError *error){
if(url)
{
// redirect to where you want
}
}];
...........
}