{"action":"closed","issue":{"url":"https://api.github.com/repos/fbsamples/messenger-platform-samples/issues/28","repository_url":"https://api.github.com/repos/fbsamples/messenger-platform-samples","labels_url":"https://api.github.com/repos/fbsamples/messenger-platform-samples/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/fbsamples/messenger-platform-samples/issues/28/comments","events_url":"https://api.github.com/repos/fbsamples/messenger-platform-samples/issues/28/events","html_url":"https://github.com/fbsamples/messenger-platform-samples/issues/28","id":176469431,"number":28,"title":"Response type of `text/javascript`","user":{"login":"chadfawcett","id":3250463,"avatar_url":"https://avatars.githubusercontent.com/u/3250463?v=3","gravatar_id":"","url":"https://api.github.com/users/chadfawcett","html_url":"https://github.com/chadfawcett","followers_url":"https://api.github.com/users/chadfawcett/followers","following_url":"https://api.github.com/users/chadfawcett/following{/other_user}","gists_url":"https://api.github.com/users/chadfawcett/gists{/gist_id}","starred_url":"https://api.github.com/users/chadfawcett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadfawcett/subscriptions","organizations_url":"https://api.github.com/users/chadfawcett/orgs","repos_url":"https://api.github.com/users/chadfawcett/repos","events_url":"https://api.github.com/users/chadfawcett/events{/privacy}","received_events_url":"https://api.github.com/users/chadfawcett/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-12T19:59:34Z","updated_at":"2016-09-12T20:05:35Z","closed_at":"2016-09-12T20:05:34Z","body":"When posting to the messages api endpoint in the `callSendAPI` method, it is being sent as `application/json` but the response type is `text/javascript`. https://github.com/fbsamples/messenger-platform-samples/blob/830abab21750d8441533ff123159dfa47252a0a6/node/app.js#L813\r\n\r\nIs this the desired behaviour? I am attempting to use `superagent` instead of the `request` module to make my requests. It will not parse the response body unless the type is correct. In my case I am attempting to parse json, so it won't parse the response to body as the type isn't `application/json`. \r\n\r\nBasically I'm just wondering if the type is correct. I couldn't find anywhere to Ask Questions/Report Issues on the API itself."}}
{"actor":{"display_login":"chadfawcett"}}