title: Any way to get a page-scoped-id from app-scoped-id on Facebook?
body: <p>As many of you already know, when a user logins on one of our Facebook Apps, we get some data and there is a user ID that only works for the App world.</p>
  
  <p>If we have, let's say, a bot that we want to use to interact with the user, we need an ID that is unique to the page associated with that bot. In order to get it, I have been reading this:</p>
  
  <p><a href="https://developers.facebook.com/docs/messenger-platform/identity/customer-matching" rel="nofollow noreferrer">https://developers.facebook.com/docs/messenger-platform/identity/customer-matching</a></p>
  
  <p>Obviously, we want to send a message to the user as soon as he/she is logged in, without previous interaction. We tried with the Graph API:</p>
  
  <pre><code>&lt;user-app-scoped-id&gt;?fields=name,age_range,ids_for_apps,ids_for_pages&amp;access_token=&lt;user-access-token&gt;
  </code></pre>
  
  <p>And we get something like this:</p>
  
  <pre><code>{
    "name": "xxxx",
    "ids_for_apps": {
      "data": [
        {
          "id": "1006086616200000",
          "app": {
            "link": "http://public-link/",
            "name": "ChatBotTest",
            "id": "1171064089667000"            
         }
        }
      ],
      "paging": {
        "cursors": {
          "before": "MTE3MTA2NDA4OTY2NTE3",
          "after": "MTE3MTA2NDA4OTY2NTE3"
        }
      }
    },
    "ids_for_pages": {
      "data": [
        {
          "id": "1599402636786000",
          "page": {
            "name": "TuHuella",
            "id": "1931527867112000"
          }
        }
      ],
      "paging": {
        "cursors": {
          "before": "MTkzMTUyNzg2NzExMjU1MAZDZD",
          "after": "MTkzMTUyNzg2NzExMjU1MAZDZD"
        }
      }
    },
    "id": "1006086616200000"
  }
  </code></pre>
  
  <p>The last part "ids_for_pages", only appears if the user wrote something to our page, so it seems that we need this interaction.</p>
  
  <p>Anybody knows a way to avoid this? maybe we can programmatically send a message from the logged in user to our Page so we get this interaction?</p>
  
  <p>Thanks a lot,</p>
  
  <p>Ricardo</p>