title: Facebook Messenger Instant Games cannot fetch from or post to leaderboards
body: <p>I am trying to port my first game to messenger instant, but I am totaly unable to post or fetch any scores. I have created both global and context related leaderboards, but no luck with either of them. I stil get ' no leaderboard found error'. Am I missing something? </p>
  
  <p>Here is my project flow:</p>
  
  <ul>
  <li>calling FBInstant.initializeAsync and loading all assets  </li>
  <li>once assets are loaded I call FBInstant.startGameAsync</li>
  <li><p>now in code I am trying to post score </p>
  
  <pre><code>function FacebookPostScore(score, leaderboard)
  {
      LOG('FacebookPostScore');
  
      FBInstant
          .getLeaderboardAsync(leaderboard)
          .then(function(leaderboard){
              console.log(leaderboard.getName());
              return leaderboard.setScoreAsync(score, '{test: "1", test2: 3}');
          })
          .then(function(){
              console.log('Score saved')
          })
          .catch(function(error){
              console.log('ERROR : ' + JSON.stringify(error));
          });
  };
  </code></pre></li>
  <li><p>when I am playing SOLO, context ID is null and I am trying to use GLOBAL leaderboard <strong>FacebookPostScore(1000, 'get10')</strong></p></li>
  <li>when I am playing in group, I am trying to use contextual leaderboard <strong>FacebookPostScore(1000, 'main.' + FBInstant.context.getID()</strong></li>
  </ul>
  
  <p>Both times I get only error</p>
  
  <p><strong>ERROR : {"code":"LEADERBOARD_NOT_FOUND","message":"A leaderboard with the name \"main.1692542424140140\" was not found"}</strong></p>
  
  <p><strong>ERROR : {"code":"LEADERBOARD_NOT_FOUND","message":"A leaderboard with the name \"get10\" was not found"}</strong></p>
  
  <p><a href="https://i.stack.imgur.com/404cV.png" rel="nofollow noreferrer">This is how it looks in chrome console</a></p>