How do I use the cranberrygame_CordovaFacebook_2.0.27 plugin

Get help using Construct 2

Post » Sat Jun 13, 2015 7:25 pm

Ive download the cranberrygame_CordovaFacebook_2.0.27 plugin but it seems i am doing something wrong.
All i want to do is when the player touches the FB icon, he would post a link for the app to Facebook.

So, i imported the plugin, and added action Touch-->on touch gesture on FBicon-->CordovaFacebook-->Prompt wall post link this app

I export, go to xdk, edit the script and copy/paste appid appname etc, build apk, install to my phone but when i touch the FB icon, nothing happens!

Please someone help me...i already have my game on Google play but i want to update it!

Thanks in advance..
B
26
S
6
G
2
Posts: 85
Reputation: 2,638

Post » Sat Jun 13, 2015 8:41 pm

At CordovaFacebook-->login do i have to change "email, public_profile, user_friends" with something else?
I dont know what am i doing wrong.. :(
B
26
S
6
G
2
Posts: 85
Reputation: 2,638

Post » Sat Jun 13, 2015 11:33 pm

the plugin should of included a tutorial an template have you taken a look at those to make sure you using the right events. also you might get more help with this in the cranberry plugin thread or his google community since it's a third party plugin


plugins-plugins-for-construct2-powered-by-cordova_t109586

https://plus.google.com/communities/117 ... 5005605917
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Sat Jun 13, 2015 11:45 pm

Thank you very much for the reply!
The tutorial says NOTHING about the events!!
It shows how to add the plugin and right after that it jumps to XDK!

All i want to do is when the player touches the FB icon, he would post a link for the app to Facebook
Is there any other way apart from CordovaFacebook plugin?
I am using XDK/Crosswalk to build.

Thanks again..
B
26
S
6
G
2
Posts: 85
Reputation: 2,638

Post » Sun Jun 14, 2015 2:48 am

you can call direct link with browser plugin
B
47
S
16
G
8
Posts: 803
Reputation: 8,378

Post » Sun Jun 14, 2015 8:14 am

Wouldnt that open facebook in the browser? Thats better than nothing of course but id prefer opening facebook with the fb app..
B
26
S
6
G
2
Posts: 85
Reputation: 2,638

Post » Sun Jun 14, 2015 11:38 am

Anyone out there (beside the creators) who made it work?
Its driving me crazy!!
I know it must be something very easy but i cant find it so far!

Is there another plugin that does the same thing building with crosswalk?

Edit
Ok, cranberrygame gave me some advice (thank you very much) and i saw i had the old script from phonegap. I change it with the new cordova.
Now it tries to connect to FB but then it does nothing and drops back in the game..
B
26
S
6
G
2
Posts: 85
Reputation: 2,638


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 14 guests