如何在c#下载Facebook消息附件

时间:2013-11-19 17:27:55

标签: c# facebook attachment

我成功阅读了facebook收件箱/帖子消息,但我无法从C#下载附件?

这是Json格式的附件:

"attachments": {
                     "data": [
                        {
                           "id": "7c6b6bcf965711654510b4b75b91df2f",
                           "mime_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
                           "name": "CV_Test_2.docx",
                           "size": 10017
                        }
                     ]
                  }

我尝试使用:https://api.facebook.com/method/messaging.getattachment

使用access_token,mesage id和附件ID

但是我收到了错误:

<?xml version="1.0" encoding="UTF-8"?>
<error_response xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://api.facebook.com/1.0/">
<error_code>3</error_code>
<error_msg>Unknown method</error_msg>
<request_args list="true">
<arg>
<key>method</key>
<value>messaging.getattachment</value>
</arg>
<arg>
<key>access_token</key>
....

0 个答案:

没有答案