Do you need to have your own website with meta
tags for your app link url to use the FBSDKAppInviteContent
and FBSDKAppInviteDialog
to invite friends?. If I put just the app link url there,
It shows an error saying something like
Missing App Link URL The app link used with this invite does not contain an Android or iOS URL. Developers are required to enter a URL for at least one platform.
I'm using facebook-sdk
iOS and also fbsdksharekit
. Does anyone know how to solve this error or warning?
Yes, You have to add meta tags of your app link url in your website.
iOS
As an example, let's say you've got a page located at:
http://example.com/applinks
In that page you need to add some metadata to describe what app will handle it:
<html>
<head>
<meta property="al:ios:url" content="example://applinks" />
<meta property="al:ios:app_store_id" content="12345" />
<meta property="al:ios:app_name" content="Example App" />
<meta property="og:title" content="example page title" />
<meta property="og:type" content="website" />
<!-- Other headers -->
</head>
<!-- Other HTML content -->
</html>
</head>
For those who want know and asking how does it work, appLinkUrl is not the url of your app in the market. Here's the way I did this.
Use the link of your webpage that has the meta tags and use it like on the sample on facebook docs
FBSDKAppInviteContent *content =[[FBSDKAppInviteContent alloc] init]; content.appLinkURL = [NSURL URLWithString:@"your_website_link_with_metatags"];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With