简体   繁体   English

使用Facebook Graph API访问存档的私人消息

[英]Access archived private messages using Facebook Graph API

How can I access archived private messages using Facebook's Graph API? 如何使用Facebook的Graph API访问存档的私人消息?

https://graph.facebook.com/me/inbox seems to return unarchived messages only. https://graph.facebook.com/me/inbox似乎只返回未归档的邮件。

So the deal (apparently) is that archived messages are simply not available VIA the api. 所以这笔交易(显然)是通过api无法获得存档的消息。 Whether this is a bug or not is yet to be determined. 这是否是一个错误还有待确定。

You can see this behavior by querying a specific message by it's ID in the API Explorer , then archiving the message through Facebook. 您可以通过API资源管理器中的ID查询特定消息,然后通过Facebook归档消息来查看此行为。 Returning to the Explorer and querying the same message yeilds the uber generic and much despised "Unsupported get request" . 返回资源管理器并查询相同的消息,发现了超级通用且非常鄙视的"Unsupported get request"

{
  "error": {
    "message": "Unsupported get request.", 
    "type": "GraphMethodException", 
    "code": 100
  }
}

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

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