简体   繁体   English

访问Facebook Messenger消息

[英]Access Facebook Messenger Messages

For an application I've been working on I require access hopefully be able to send / receive Facebook Messenger messages through the API. 对于我一直在开发的应用程序,我希望具有访问权限,希望能够通过API发送/接收Facebook Messenger消息。

The other posts regarding this question on stack overflow are somewhat outdated now due to the updates. 由于更新,有关此堆栈溢出问题的其他帖子现在有些过时了。

After doing some research I found that it is indeed possible to send and receive messages as a bot, however I have been unable to find a working method to send and receive messages as a regular user. 经过研究后,我发现确实可以以漫游器的形式发送和接收消息,但是我一直无法找到一种有效的方法来以普通用户身份发送和接收消息。

I was able to find this API reference: https://developers.facebook.com/docs/graph-api/reference/v3.1/user/inbox which didn't appear to depreccated until I went ahead and tried it: 我能够找到此API参考: https ://developers.facebook.com/docs/graph-api/reference/v3.1/user/inbox直到我继续尝试之前,它似乎都已被弃用:

{
  "error": {
    "message": "(#12) This endpoint is deprecated for versions v2.4 and higher",
    "type": "OAuthException",
    "code": 12,
    "fbtrace_id": "xxxxxxx"
  }
}

It appears though facebook shut a bunch of stuff down after the privacy incidents in the previous months. 在过去几个月的隐私事件之后,facebook似乎关闭了很多东西。

I am just wondering if there is any way to essentially manage the messenger account AS a user from an API externally? 我只是想知道是否有某种方法可以从外部从API实质上管理作为用户的Messenger帐户?

There is no way to access the user messages, you cannot create messages and you cannot read the messages. 无法访问用户消息,无法创建消息,也无法阅读消息。 There is no permission and no API for it anymore. 没有权限,也没有API。 It has been removed some years ago, it's not related to the recent changes. 几年前已将其删除,与最近的更改无关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM