Reputation: 5384
I am not able to redirect to my iOS app from facebook post. When I click on that post its gets open as webpage (somehow dosent identify tags for iOS & dosen't redirect to app). Not sure whether its a ios app OR html content or some other issue.
I have integrated Facebook APP Link meta tags in my HTML page like below.
in my case URLScheme name is "fbXXXXXXX"
<meta property="fb:app_id" content=<fb_APP_ID> />
<meta property="al:ios:app_store_id" content=<appstoreid> />
<meta property="al:ios:url" content="fbXXXXXXX://eventid/12345" />
<meta property="al:ios:app_name" content=<App name> />
LSApplicationQueriesSchemes
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fb-messenger-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
AppDelegate.m
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
[[FBSDKApplicationDelegate sharedInstance] application:application
openURL:url
sourceApplication:sourceApplication
annotation:annotation
];
BFURL *parsedUrl = [BFURL URLWithInboundURL:url sourceApplication:sourceApplication];
if ([parsedUrl appLinkData]) {
[self handleDeeplinkURL:url];
}
return YES;
}
Because sharing the URL directly works, I'm fairly confident I've set up deep linking correctly, so I think it must be something with open graph.
Upvotes: 0
Views: 2465
Reputation: 2818
This is definitely an applinks issue, not an iOS uri scheme configuration issue.
It could be the case that Facebook has not yet scraped your webpage for those app links. You should put the link to your HTML page in the Facebook Debugger to test that your applinks metatags are working.
Upvotes: 0
Reputation: 48
With link sharing you mean you are able to run your app with this link myapp://eventid/12345 ?
If not you should check your Info.plist if you have registered URL Scheme for your application. The name for the scheme should be the same you've defined in facebook app settings, in your case it is "myapp"
Upvotes: 0