任何人都可以帮助我在与Facebook图形API的对话中获取发件人的照片

时间:2017-03-18 11:35:07

标签: facebook-graph-api

有人可以帮助我在图API的对话中了解发件人的照片吗?

我试过了:

Here is the code snippet which checks if the browser supports AJAX or not.
?
<script type="text/javascript">
var xmlhttp;
function checkAJAXSupport() {
    if (window.XMLHttpRequest) { // Mozilla, Safari, ...
      xmlhttp= new XMLHttpRequest();
      alert("Yes. Your browser must be one among them - Mozilla, Safari, Chrome, Rockmelt, IE 8.0 or above");
    } else if (window.ActiveXObject) { // IE
      try {
        xmlhttp= new ActiveXObject("Msxml2.XMLHTTP");
        alert("Yes. Your browser must be IE");
      } 
      catch (e) {
        try {
          xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
          alert("Yes. Your browser must be IE");
        } 
        catch (e) {}
      }
    }
 if (!xmlhttp) {
      alert("No. Giving up Cannot create an XMLHTTP instance. Your browser is outdated!");
      return false;
    }
}
</script>

但我收到错误:

me/conversations?fields=id,senders{id,name,picture}

1 个答案:

答案 0 :(得分:1)

api的这一部分自2.4以来已被弃用,因此你现在无法做到这一点。消息明确指出,senders字段是无效边。 READ THIS 了解更多信息