How do I SHARE my score for Facebook for Android?

Get help using Construct 2

Post » Thu Nov 05, 2015 10:06 am

Hi in my game i have a score
i want to share that score on facebook.
on facebook i opened my developer section added the API ID to the facebook plugin and the SECRET KEY also.

NOW in the construct 2 app i added just a buton, when i clic i want just to send the score to facebook.
The game is developed for Android, and i export that with cordova, and after i use Intel XDK (last build) and export to crosswalk android

I can't find a FULL tutorial how to achive this, the basic tutorial from scirra is outdated (2011), facebook is updated numerous times a year, api, etc..

SO

Im looking for a real help because im just stuck with that, how to share my score with facebook for an Android game.
is no recent tutorial HOW TO, do this step by step.

thanks
B
35
S
13
G
6
Posts: 1,645
Reputation: 8,792

Post » Thu Nov 05, 2015 2:47 pm

Facebook needs certain permissions to use the game scoring... because of them updating the API, is hard to keep updated...

Use FacebookComplete... It lets you pick the permissions your asking for...

Although I find Facebook a huge pain to work with... because:
- You have to add the URL you will be using it on. (which is annoying for testing)
- You have to use their fake accounts, which don't work very well.
- Changing API...
... and more

I'm assuming your looking for the leaderboard of your friends?
Eat ALL THE BACON!
B
45
S
17
G
3
Posts: 290
Reputation: 4,993

Post » Thu Nov 05, 2015 2:56 pm

i wans just to share the app or the last score of the user just on facebook :D

Actually in Intel XDK


"Given URL is not allowed by the Application configuration: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains."
B
35
S
13
G
6
Posts: 1,645
Reputation: 8,792

Post » Thu Nov 05, 2015 4:53 pm

o, I thought you wanted to have a Facebook leaderboard...

Check your Facebook developer panel... Did you add your URL in there? (for testing put in http://localhost:50000)
Eat ALL THE BACON!
B
45
S
17
G
3
Posts: 290
Reputation: 4,993

Post » Thu Nov 05, 2015 5:10 pm

well actually like i said i need to know what to add for making my bouton "share score" working directly with facebook, need step by step tutorial because the origina ltutorial facebook is outdated (2011) not working!
B
35
S
13
G
6
Posts: 1,645
Reputation: 8,792

Post » Thu Nov 05, 2015 9:31 pm

Can someone HELP with a RECENT example (not from 2010...) on HOW to add facebook working plugin?
B
35
S
13
G
6
Posts: 1,645
Reputation: 8,792


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests