Rest facebook graph api访问令牌错误
我正试图用这样的访问令牌访问facebook营销apiRest facebook graph api访问令牌错误,rest,api,facebook-graph-api,Rest,Api,Facebook Graph Api,我正试图用这样的访问令牌访问facebook营销api https://graph.facebook.com/v2.7/me?key=value&access_token=7675848474658758|u0498cm4u85a478c954858784 { "error": { "message": "An active access token must be used to query information about the current use
https://graph.facebook.com/v2.7/me?key=value&access_token=7675848474658758|u0498cm4u85a478c954858784
{
"error": {
"message": "An active access token must be used to query information about the current user.",
"type": "OAuthException",
"code": 2500,
"fbtrace_id": "rctvrtrtr"
}
}
{
"error": {
"message": "Malformed access token EXISTING_ACCESS_TOKEN",
"type": "OAuthException",
"code": 190,
"fbtrace_id": "txdtysyvyt"
}
}
得到这样的错误
https://graph.facebook.com/v2.7/me?key=value&access_token=7675848474658758|u0498cm4u85a478c954858784
{
"error": {
"message": "An active access token must be used to query information about the current user.",
"type": "OAuthException",
"code": 2500,
"fbtrace_id": "rctvrtrtr"
}
}
{
"error": {
"message": "Malformed access token EXISTING_ACCESS_TOKEN",
"type": "OAuthException",
"code": 190,
"fbtrace_id": "txdtysyvyt"
}
}
我在谷歌上搜索发现我的代币过期了。可能
第二,我从谷歌找到了这个url,它的描述是每次运行时都会得到新的访问令牌
https://graph.facebook.com/oauth/access_token?
client_id=APP_ID&
client_secret=APP_SECRET&
grant_type=fb_exchange_token&
fb_exchange_token=EXISTING_ACCESS_TOKEN
这次我犯了这样的错误
https://graph.facebook.com/v2.7/me?key=value&access_token=7675848474658758|u0498cm4u85a478c954858784
{
"error": {
"message": "An active access token must be used to query information about the current user.",
"type": "OAuthException",
"code": 2500,
"fbtrace_id": "rctvrtrtr"
}
}
{
"error": {
"message": "Malformed access token EXISTING_ACCESS_TOKEN",
"type": "OAuthException",
"code": 190,
"fbtrace_id": "txdtysyvyt"
}
}
是否有任何方法可以请求fb graph api,并将传递的应用程序id和密码作为访问令牌,以便每次使用新的访问令牌从facebook获取数据?如果是,我该怎么办
第二,我如何在这个url中传递参数以获得特定信息?第三,我已经通过了appid和secret。这是否意味着我不需要用户id和密码来访问url?对吧?
请给出你的建议
提前谢谢 你解决了吗?你解决了吗?