您需要拥有自己的网站,使用元标记为您的应用链接网址使用FBSDKAppInviteContent和FBSDKAppInviteDialog邀请朋友吗?如果我把那个应用链接的url放在那里,
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.
解决方法
是的,您必须在您的网站中添加您的应用链接网址的元标记.
iOS版
举个例子,假设你有一个页面位于:
<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>