PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, June 29, 2022

[FIXED] what is AppLink URL in FB.Mobile.AppInvite in Facebook SDK for Unity? and how to get it? or make it?

 June 29, 2022     facebook, facebook-sdk-4.0, fbsdkappinvitecontent, unity3d, unity5     No comments   

Issue

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 };

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?


Solution

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.

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)

EDIT: Facebook itself now provides applinks, as described here: https://developers.facebook.com/docs/applinks/index-api/

EDIT, THIS NO LONGER WORKS:

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

read more here: https://developers.facebook.com/docs/applinks/hosting-api

p.s. hope the URLs don't decay and dissolve through the coming centuries

p.p.s the URLs have decayed under 2 years. Crazy



Answered By - Nika Kasradze
Answer Checked By - Senaida (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing