简体   繁体   English

IOS Facebook SDK邀请Missing App Link URL

[英]IOS Facebook SDK invite Missing App Link URL

IOS Facebook SDK invite user message when i trying to invite anyone. 当我试图邀请任何人时,IOS Facebook SDK邀请用户消息。

Missing App Link URL The app link used with this invite does not contain an Android or IOS URL. 缺少应用链接网址此邀请使用的应用链接不包含Android或IOS网址。 Developers are required the enter a URL for at last one platform. 开发人员需要输入最后一个平台的URL。

For Facebook SDK Invite, you need create a custom App Link. 对于Facebook SDK Invite,您需要创建自定义应用程序链接。 Facebook gave complete documentation for invites. Facebook提供了完整的邀请文档。 Refer this link to create App link . 请参阅此链接以创建应用程序链接 Facebook provides a App Link Tool to create your custom app link. Facebook提供了一个应用链接工具来创建自定义应用链接。 In tool to create App Link, you need add some Custom URL scheme, App store ID and App name. 在创建App Link的工具中,您需要添加一些自定义URL方案,App Store ID和App name。 Custom URL scheme looks like this: youAppName://fbFacebookAppID . 自定义URL方案如下所示: youAppName://fbFacebookAppID We also add fbFacebookAppID in .plist under URLScheme in URLTypes 我们还添加fbFacebookAppID.plistURLSchemeURLTypes

AppLinkUrl is not the url of your app in the market. AppLinkUrl不是您应用在市场上的网址。

  • You need to make your own appLinkUrl and put it in your info.plist(see: http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html ) that you'll be using for deepLinking. 你需要制作自己的appLinkUrl并将它放在你的info.plist中(参见: http ://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html)将用于deepLinking。
  • Then after you declare it on your info.plist, you must have at least an html web page where you can put the meta tags for the appLinks of ios or android( https://applinks.org ). 然后在info.plist上声明它之后,你必须至少有一个html网页,你可以在其中放置ios或android( https://applinks.org )appLinks的元标记。 Take note the the appLinkUrl that you have put on your info.plist should be the same on your meta property="al:ios:url 请注意,您在info.plist上放置的appLinkUrl应该与meta属性相同=“al:ios:url
  • Debug your website url and check your meta tags using facebook url debugger. 调试您的网站URL并使用facebook url调试器检查您的元标记。 Press "Fetch new scrape information" to update the meta tags for any changes on it. 按“获取新的刮擦信息”以更新元标记以进行任何更改。
  • Use the link of your webpage that has the meta tags and use it like on the sample on facebook docs 使用包含元标记的网页链接,并像在facebook文档上的示例一样使用它

    FBSDKAppInviteContent *content =[[FBSDKAppInviteContent alloc] init]; FBSDKAppInviteContent * content = [[FBSDKAppInviteContent alloc] init]; content.appLinkURL = [NSURL URLWithString:@"your_website_link_with_metatags"]; content.appLinkURL = [NSURL URLWithString:@“your_website_link_with_metatags”];

  • Just need to make sure your meta tags have the right information. 只需要确保您的元标记有正确的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM