I'm very much a front-end guy, and I'm making a game for iOS/Android in Unity3d. I want to have a "Share on Facebook"-button in my game. When the user clicks it, it shares a link to the game on her facebook wall.
This part isn't so tricky - maybe I'll just use the prime31-plugin for that.
My question is about clicking the link on the facebook wall. Is it possible to achieve an user experience like the one outlined here:
if (user clicks from the iOS Facebook app)
{
if (user has the app installed)
{
open app;
}
else
{
open App Store on the app’s page;
}
}
else if (user clicks from the Android Facebook app)
{
if (user has the app installed)
{
open app;
}
else
{
open Google Play on the app’s page;
}
}
else
{
open my apps homepage in standard browser;
}
1) First of all: If I create an "Facebook App" for the game, Facebook provides some kind of "App Links"... can they provide the behaviour I'm after?? (yes, I read a lot on it, but can't really get my head around if it fits my case)
2) If not, can I set up some kind of "AppLinks" in the top of the html on my webpage, so it functions the same way?
3) If not, can I use e.g. php-redirects on my webpage, to achieve the same flow?
Any thoughts or tips, tutorials or code samples, half or whole solutions are most welcome! I've searched the web for days, just getting increasingly confused.
So please help me in the right direction! :-) Thanx in advance!