Messenger bot:您必须先登录 www.facebook.com 并按照给出的说明操作,然后才能访问该应用程序。没有给出任何指示
Messenger bot: You cannot access the app till you log in to www.facebook.com and follow the instructions given. No instructions were given
我的 Messenger bot 运行 两个月了,但今晚发生了一些变化,由于不明原因,我无法 POST 返回 Facebook,returns 出现错误回复。
来自乞讨:
- 这是通讯方案
# VS - alias for the Server running chatbot
# this is what should happen
1. User -> message -> FB # User sends a message via messenger
2. VS <- message <- FB # Facebook does its thing and send me REST API POST request
3. VS -> response -> FB # I send the response meant for the User
4. User <- response <- FB # Facebook forwards the response to User
# this is what is happening
1. User -> message -> FB # works
2. VS <- message <- FB # works
3. VS -> response -> FB # works
4. VS <- error <- FB # FB returns an 400 error and User gets no response
- 这是第四步返回的错误
# The error response from step 4
'{"error":{
"message":"You cannot access the app till you log in to www.facebook.com and follow the
instructions given.", ### !! above !! ###
"type":"OAuthException",
"code":190,
"error_data": "{\"checkpoint_url\" : \"https:\\/\\/www.facebook.com\"}",
"error_subcode":459,
"fbtrace_id":"A9MjzGGqQfKY2vPsszXQemu"
}
}'
我按照消息字段中的说明进行了操作,但没有关于 facebook.com
和 developers.facebook.com
的说明。我从正确的帐户检查。
我确实更改了服务器代码,但这是一个简单的错误修复,不应影响与 Facebook 的通信。显然,我已经对其进行了测试并且一切正常。
但是一夜之间,FB 认为一切都不好,并开始向每个发送的 response
返回错误(response
是通信方案中的第三步)。
你知道这个错误是关于什么的吗?或者我在哪里可以找到帮助,因为 Facebook 不提供真正的支持?
快速修复:
- 登录应用程序的每个管理员帐户并查看通知或
可能的安全问题。
对我来说是更改帐户密码
我不是每天都用。
- 在
App Dashboard/Messenger/Settings
中生成新的访问令牌并重新配置
您的服务器使用它。
更长的版本
该应用程序有两个管理员帐户,一个是我常用的,另一个是专门为这个项目创建的(不必要的)。
从我的主帐户来看,我找不到任何可以告诉我问题出在哪里的东西,在写这个问题时,只是为了确保我检查了另一个。 FB 出于安全原因提示我更改密码,因为有人试图从美国登录(但我最近没有尝试登录此帐户)。
我更改了密码并查找会告诉我哪里出了问题的通知。没有什么。日志中的错误响应也没有改变。
今天没有更好的想法,我从:requests.post("https://graph.facebook.com/v2.6/me/messages")
至:
requests.post("https://graph.facebook.com/v6.0/me/messages")
并检查了日志,我在其中找到了这个响应:
"error":{
"message":"Error validating access token: The session has been invalidated
because the user changed their password or Facebook has changed the
session for security reasons.",
"type":"OAuthException",
"code":190,
"error_subcode":460,
"fbtrace_id":"Ay7KPJ9_gtv5s3ebKjm5LG_"
}}'
现在我完全按照它说的做了,并生成了一个新的访问令牌
App Dashboard/Messenger/Setting
并重新配置了我的服务器。就是这样。
然后出于好奇,我将 v6.0
改回 v2.6
并且一切仍然正常。
我无法登录 messager
因为我获取代码的速度不够快
你告诉我我的 phone 号码错了
我的密码
是错的
我的 gmail 是错误的
他们完全错了他们是对的
替我打开我的消息
我的 Messenger bot 运行 两个月了,但今晚发生了一些变化,由于不明原因,我无法 POST 返回 Facebook,returns 出现错误回复。
来自乞讨:
- 这是通讯方案
# VS - alias for the Server running chatbot
# this is what should happen
1. User -> message -> FB # User sends a message via messenger
2. VS <- message <- FB # Facebook does its thing and send me REST API POST request
3. VS -> response -> FB # I send the response meant for the User
4. User <- response <- FB # Facebook forwards the response to User
# this is what is happening
1. User -> message -> FB # works
2. VS <- message <- FB # works
3. VS -> response -> FB # works
4. VS <- error <- FB # FB returns an 400 error and User gets no response
- 这是第四步返回的错误
# The error response from step 4
'{"error":{
"message":"You cannot access the app till you log in to www.facebook.com and follow the
instructions given.", ### !! above !! ###
"type":"OAuthException",
"code":190,
"error_data": "{\"checkpoint_url\" : \"https:\\/\\/www.facebook.com\"}",
"error_subcode":459,
"fbtrace_id":"A9MjzGGqQfKY2vPsszXQemu"
}
}'
我按照消息字段中的说明进行了操作,但没有关于 facebook.com
和 developers.facebook.com
的说明。我从正确的帐户检查。
我确实更改了服务器代码,但这是一个简单的错误修复,不应影响与 Facebook 的通信。显然,我已经对其进行了测试并且一切正常。
但是一夜之间,FB 认为一切都不好,并开始向每个发送的 response
返回错误(response
是通信方案中的第三步)。
你知道这个错误是关于什么的吗?或者我在哪里可以找到帮助,因为 Facebook 不提供真正的支持?
快速修复:
- 登录应用程序的每个管理员帐户并查看通知或
可能的安全问题。
对我来说是更改帐户密码 我不是每天都用。 - 在
App Dashboard/Messenger/Settings
中生成新的访问令牌并重新配置 您的服务器使用它。
更长的版本
该应用程序有两个管理员帐户,一个是我常用的,另一个是专门为这个项目创建的(不必要的)。
从我的主帐户来看,我找不到任何可以告诉我问题出在哪里的东西,在写这个问题时,只是为了确保我检查了另一个。 FB 出于安全原因提示我更改密码,因为有人试图从美国登录(但我最近没有尝试登录此帐户)。
我更改了密码并查找会告诉我哪里出了问题的通知。没有什么。日志中的错误响应也没有改变。
今天没有更好的想法,我从:requests.post("https://graph.facebook.com/v2.6/me/messages")
至:
requests.post("https://graph.facebook.com/v6.0/me/messages")
并检查了日志,我在其中找到了这个响应:
"error":{
"message":"Error validating access token: The session has been invalidated
because the user changed their password or Facebook has changed the
session for security reasons.",
"type":"OAuthException",
"code":190,
"error_subcode":460,
"fbtrace_id":"Ay7KPJ9_gtv5s3ebKjm5LG_"
}}'
现在我完全按照它说的做了,并生成了一个新的访问令牌
App Dashboard/Messenger/Setting
并重新配置了我的服务器。就是这样。
然后出于好奇,我将 v6.0
改回 v2.6
并且一切仍然正常。
我无法登录 messager 因为我获取代码的速度不够快 你告诉我我的 phone 号码错了 我的密码 是错的 我的 gmail 是错误的 他们完全错了他们是对的 替我打开我的消息