Cannot show highscore of FB friends

Discussion and feedback on Construct 2

Post » Mon May 18, 2015 9:31 am

I'm unable to show the high score of friends in my Facebook app. The request for the highscore list through the FB plugin only returns the player's own score.

While the FB highscore function appears to work for older users on older apps, it does not work for new apps or for new users of older apps.

The issue seems to be that when a new user of a C2 FB-app logs in for the first time, the app is not granted the user_friends permission from Facebook (This permission was granted to C2 apps previously).

I read that Facebook recently tightened up their apps-permissions policy. Perhaps permissions that were previously given by default must now be explicitly requested? In that case, maybe the FB-plugin must be updated for the highscore function to work. Just my guess.

Is there someone who is able to use the FB highscore function for new apps or for new users on olders apps?

Karl
B
3
S
1
Posts: 5
Reputation: 389

Post » Tue May 19, 2015 8:20 pm

Turned out to be as I thought. I added a line in the FB plugin to request user_friends permission, and now the highscore function works.

It would be nice with an update so I don't have to redo this tweak after every Construct 2 update.
B
3
S
1
Posts: 5
Reputation: 389

Post » Sat May 30, 2015 6:13 am

Hello @karlsigfrid
I was having the same problem and didn't know why.
Would you be so kind to tell me which line did you add and where please?

@Ashley can you take note on this problem please?

Thanks to both.
B
37
S
7
G
5
Posts: 32
Reputation: 5,876

Post » Sat May 30, 2015 10:26 am

If you don't get a response here, please submit a bug report. Thanks.
A big fan of JavaScript.
B
74
S
20
G
71
Posts: 2,230
Reputation: 44,892

Post » Tue Jun 23, 2015 4:47 pm

Hello, @karlsigfrid

I'm also trying to get the leaderboard working. But right not it only shows the scores of Admins of the Facebook app. If somebody else plays the game his name appears on leaderboard and the score is displayed as 0. Did you submit the app for review on Facebook ? If you did so what are the permissions you added to the review ?
B
5
Posts: 8
Reputation: 241


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 19 guests