Facebook ID匹配API说无效令牌

时间:2019-11-01 23:42:37

标签: facebook firebase facebook-graph-api

我在firebase中有一个应用程序,用户可以使用Facebook登录。从该登录名中,我得到他的ASID。现在,我想在我的Messenger中获取此用户ID并给他写一条消息。

我遵循了本教程:https://developers.facebook.com/docs/messenger-platform/identity/id-matching

我的网址看起来像这样:

  

https://graph.facebook.com/v5.0/ {ASID} / ids_for_apps?access_token = {pageAccessToken}&appsecret_proof = {sha256}

要获取pageAccessToken

  

https://graph.facebook.com/v5.0/ {pageId}?fields = access_token&access_token = {userAccessToken}

现在我收到此错误:

{
    "error": {
        "message": "(#100) Invalid token. Can only query using page access tokens where the page is owned by the same business as the app.",
        "type": "OAuthException",
        "code": 100,
        "fbtrace_id": "ACv6_We47HagGtMBzrQuT5A"
    }
}

有人知道我在做什么错吗?

在我的应用程序的开发人员页面中,我已经链接了网站(设置>扩展>应用程序页面)

0 个答案:

没有答案
相关问题