Jump to content

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!!

Link to comment
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());

 

Link to comment
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.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...