Facebook FBSDKAppInviteContent - Missing App Link URL

Shuin picture Shuin · Apr 29, 2015 · Viewed 12.5k times · Source

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?

Answer

Vizllx picture Vizllx · Apr 29, 2015

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>