Facebook SDK for Unity中的FB.Mobile.AppInvite中的AppLink URL是什么?以及如何获得?还是成功? [英] what is AppLink URL in FB.Mobile.AppInvite in Facebook SDK for Unity? and how to get it? or make it?
问题描述
我正在使用Unity 5.3.4f1和Facebook SDK统一7.4
问题是文档质量差,并且没有以下位置的Facebook SDK FB.Mobile.AppInvite分步指南:
https://developers.facebook.com/docs/unity/reference/current/FB.Mobile.AppInvite
I am using Unity 5.3.4f1 and Facebook SDK for unity 7.4
The problem is poor documentation and not having step by step guide to facebook SDK FB.Mobile.AppInvite in:
https://developers.facebook.com/docs/unity/reference/current/FB.Mobile.AppInvite
FB.Mobile.AppInvite(
new Uri("www.HereGoesTheAppLinkUrl.com"),
new Uri("https://www.dropbox.com/s/vzl519vvf4hfe3j/3DTank1200X628.png?dl=0"),
AppInviteCallback };
问题是什么是AppLink?如何创建它?
为此的任何Csharp代码?
关于此主题的文档在哪里?
有任何指导示例吗?
任何东西都有吗?我什至在问正确的问题吗?
The issue is what is AppLink? how to create it?
any Csharp code for that?
where is the documentation regarding this subject?
any guide example?
anyone anything? am I even asking the right questions?
推荐答案
用几句新手-AppLink是一个包含元标头的网页.这些元标头将客户端重定向到适当的应用程序或存储在其设备上.
In a few newbie words - AppLink is a webpage full of meta headers. These meta headers redirect the client to appropriate application or store on their device.
例如如果您为MyXYZapp
创建一个AppLink页面,这是一个适用于iOS和Android的应用程序,则可能在AppLink页面标题中会有一个伪代码,如下所示:
E.g. if you create an AppLink page for MyXYZapp
, which is an app for both iOS and Android, than probably you'll have a pseudo code in your AppLink page header like this:
//client is visiting the applink:
if the client is on Android:
try:
open app with bundle id `com.AndroidCompany.MyXYZapp`
else if MyXYZapp is not present on the device:
redirect client to Play Store page of MyXYZapp
else if the client is iOS:
try:
open `com.iOSCompany.MyXYZapp`
else:
redirect to AppStore page of MyXYZapp
else if client is visiting from any other OS:
redirect to AppStore / PlayStore via browser (or create your own behaviour)
Facebook本身现在提供应用程序链接,如下所述: https://developers.facebook.com/docs/applinks/index-api/
Facebook itself now provides applinks, as described here: https://developers.facebook.com/docs/applinks/index-api/
编辑,此后将不再起作用:
现在,大多数人都不拥有服务器来托管这些类型的页面,因此facebook提供了免费托管和非常简单的工具来为您的应用生成AppLink: https://developers.facebook.com/quickstarts/?platform=app-链接主机
Now most people do not own servers to host these kinds of pages so facebook offers free hosting and very easy tool to generate AppLinks for your apps: https://developers.facebook.com/quickstarts/?platform=app-links-host
在此处了解更多信息: https://developers.facebook.com/docs/applinks/hosting-api
read more here: https://developers.facebook.com/docs/applinks/hosting-api
p.s.希望这些网址在接下来的几个世纪中不会衰减和消失
p.s. hope the URLs don't decay and dissolve through the coming centuries
p.p.s网址在2年内衰减了.疯狂
p.p.s the URLs have decayed under 2 years. Crazy
这篇关于Facebook SDK for Unity中的FB.Mobile.AppInvite中的AppLink URL是什么?以及如何获得?还是成功?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!