Sign in to follow this  
sistemlogikadigital

Leaderboard not found

Recommended Posts

i try to submit score to leaderboard but got an error like this:

code: "LEADERBOARD_NOT_FOUND"

message: "A leaderboard with the name "Leaderboard.0" was not found",

after call FBInstant.initializeAsync( ) and  FBInstant.startGameAsync(), i call this
 

FBInstant.context
.createAsync('100')
.then(function() {
//bla bla
});

i dont undestand why context id became 0 instead 100,

thanks!!

Share this post


Link to post
Share on other sites

@sistemlogikadigital this will try to create a new Context with another Player (of id "100").  Perhaps no such Player exists, the new Context request fails, and the id value assigns to "0" (when relayed through the Leaderboard requests or prior)?  Try replacing //bla bla with the below to verify whether Context creation worked as expected: 

console.log(FBInstant.context.getID());

 

Share this post


Link to post
Share on other sites
6 hours ago, b10b said:

@sistemlogikadigital this will try to create a new Context with another Player (of id "100").  Perhaps no such Player exists, the new Context request fails, and the id value assigns to "0" (when relayed through the Leaderboard requests or prior)?  Try replacing //bla bla with the below to verify whether Context creation worked as expected: 


console.log(FBInstant.context.getID());

 

alrigth i got this, i just submit the score without context id and the score is saved to leaderboard.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.