P
Plan-G
Guest
Hi all,
I've been programming my mobile game to make use of Facebook sharing. I'm using the Facebook dialogue function, and I've managed to get it working, but I have one major concern: the function opens the default browser on my mobile device. I would like it to open the Facebook mobile app (if installed on my users' devices, and if not, then default to the default browser).
The reality is that most users will have the Facebook app installed and be logged in. Popping up a share dialogue in their browser will almost certainly require them to log in again, especially if their default browser is say, Safari, and they use Chrome. That's going to kill the share rate.
Here's where I'm at:
- Followed GMS2 user manual to the letter on this.
- Created my Facebook app
- Enabled "Use Facebook" in GMS2 Options > iOS, and provided Facebook app ID + name.
- Installed the "Facebook" extension into GMS2 (free one from YYG https://marketplace.yoyogames.com/assets/2011/facebook)
- Called
once at the start of the game
- Implemented
Tested on iOS and sharing does work, albeit via the browser.
So the question is: How can I get the facebook dialogue function to check for Facebook app installed on the user device and launch that, or if not, default to this standard behaviour? Any thoughts most welcome!
Thanks in advance.
I've been programming my mobile game to make use of Facebook sharing. I'm using the Facebook dialogue function, and I've managed to get it working, but I have one major concern: the function opens the default browser on my mobile device. I would like it to open the Facebook mobile app (if installed on my users' devices, and if not, then default to the default browser).
The reality is that most users will have the Facebook app installed and be logged in. Popping up a share dialogue in their browser will almost certainly require them to log in again, especially if their default browser is say, Safari, and they use Chrome. That's going to kill the share rate.
Here's where I'm at:
- Followed GMS2 user manual to the letter on this.
- Created my Facebook app
- Enabled "Use Facebook" in GMS2 Options > iOS, and provided Facebook app ID + name.
- Installed the "Facebook" extension into GMS2 (free one from YYG https://marketplace.yoyogames.com/assets/2011/facebook)
- Called
Code:
facebook_init()
- Implemented
Code:
var interactiveMap;
interactiveMap = ds_map_create(); /
ds_map_add(interactiveMap, "link", "mywebsite");
ds_map_add(interactiveMap, "name", "Test");
ds_map_add(interactiveMap, "caption", "Testinfo");
facebook_dialog("share", interactiveMap, -1);
ds_map_destroy(interactiveMap);
So the question is: How can I get the facebook dialogue function to check for Facebook app installed on the user device and launch that, or if not, default to this standard behaviour? Any thoughts most welcome!
Thanks in advance.
Last edited by a moderator: