How do I use facebook with crosswalk on android?

Get help using Construct 2

Post » Sun Jan 01, 2017 4:51 pm

Hi guys,
I want to make facebook login on mobile android. I read and follow the facebook document here https://www.scirra.com/manual/112/facebook. It's work fine on web preview mode(I can login, get Name, avatar,request hi-score..).
Then, I export my project to cordova and publish to android with intelXDK but seem its not work on mobile android
Last edited by gameba on Thu Jan 05, 2017 6:11 am, edited 3 times in total.
B
37
S
18
G
18
Posts: 66
Reputation: 12,003

Post » Mon Jan 02, 2017 2:42 am

Please,Help Me!
B
37
S
18
G
18
Posts: 66
Reputation: 12,003

Post » Mon Jan 02, 2017 5:27 am

check this tutorial should cover all aspects from making a facebook game to publishing
B
78
S
23
G
69
Posts: 1,353
Reputation: 44,005

Post » Mon Jan 02, 2017 9:43 am

gamecorpstudio wrote:check this tutorial should cover all aspects from making a facebook game to publishing

Thank you for your reply but It's outdated and its tutorial how to make game facebook, not work on mobile.
B
37
S
18
G
18
Posts: 66
Reputation: 12,003

Post » Mon Jan 02, 2017 12:43 pm

gameba wrote:
gamecorpstudio wrote:check this tutorial should cover all aspects from making a facebook game to publishing

Thank you for your reply but It's outdated and its tutorial how to make game facebook, not work on mobile.



for mobile in intelxdk for your app to get access to the internet you add the following in the special permission boxes -> *

but the tutorial tells you how to connect a facebook game code and secret code to the facebook plugin in the C2 project everything else doesnt matter if its mobile or not... C2 is crossplatform, means you build for facebook/pc what ever/ you publish everywhere without changing nothing.

that said your doing something wrong if the sign above doesn't help you. follow the tutorial again and add the special permission from above.


P.S also you need for facebook settings to be ready, and you to submit the game to review for special permission, if you dont send it for review the app wont work cause facebook will block your access. which probably happens now.
B
78
S
23
G
69
Posts: 1,353
Reputation: 44,005

Post » Mon Jan 02, 2017 1:02 pm

@gamecorpstudio Actually, according to some tutorial writers the official Facebook plugin does not work for mobile/cordova games. To use the FB-login feature in a mobile game you have to use third party plugins (it exists facebook plugins in the scirra store for example), or modify the official FB plugin with javascript"hacks", like this one:
https://www.scirra.com/tutorials/9396/p ... va-and-web

@gameba see tutorial above.


Other inputs? Anyone using the official FB-plugin for login in a cordova app?
B
15
S
4
Posts: 84
Reputation: 1,148


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, Bing [Bot], kainrazial and 8 guests