- Home /
Open game and level on Android from URL/Facebook
I'm in the process of exploring my options for players to share their experiences with my game on facebook. One of the things players can do is create their own levels.
I know how to let a player share something to their facebook wall, so I don't need help with that. It's what that shared item links to that is where I need assistance.
It would be really good if players could share a link on facebook that would open up the game and load that level for anyone who clicks the link. Even better (although I definitely sense this leaving the realms of possibility), if the game is not installed, if it could be shown in the play store instead.
I'm not sure whether this is possible (nor on the other extreme, whether it is super easy and I'm just missing something), so any help would be appreciated. Also, even if not all of it is possible, knowing how to do any of it (just opening the game for example) would be great.
For a bit of clarification regarding loading particular levels from a link, I'm looking for something like this to be possible in my code:
void GameLoaded(string[] args)
{
if (args.length == 0)
LoadNormal(); //The game was started normally
else
LoadLevel(args[0]); //The game was started from a shared level
}
Thanks!