title: Getting image url of message attachment from Graph Api
body: <p>I currently have the following problem:</p>
  
  <p>I am building a system with which I can handle service requests from Facebook. I get all of the conversations on my page with this request:</p>
  
  <pre><code>PAGE_ID/conversations?fields=messages{message, attachments}
  </code></pre>
  
  <p>This returns the following data (for example), when the message is an image:</p>
  
  <pre><code>{
          "message": "",
          "attachments": {
            "data": [
              {
                "id": "IMAGE_ID",
                "mime_type": "image/jpeg",
                "name": "IMAGE_NAME.jpg",
                "size": null,
                "image_data": {
                  "width": 720,
                  "height": 960,
                  "render_as_sticker": false,
                  "url": "https://scontent.xx.fbcdn.net/hphotos-xpl1/v/wl/t34.0-12/IMAGE_NAME.jpg?oh=SOME_CHANGING_STRING&amp;oe=SOME_OTHER_CHANGING_STRING",
                  "image_type": 1,
                  "max_width": 720,
                  "max_height": 960
                }
              }
            ]
          },
          "id": "MESSAGE_ID"
  }, ...
  </code></pre>
  
  <p>I first stored the image url in my own database, but after a day the URLs are changing in the parts indicated in the data above. So my initial plan was to do an additional request to the Graph API like this, to get the new URL:</p>
  
  <pre><code>MESSAGE_ID/attachments
  </code></pre>
  
  <p>But the problem is that I can not get the image data with this request, the field 'image_data' is not found. I can not seem to find another way to get the updated image url, other than checking the conversations edge again (which is not ideal due to the latency of this request).</p>
  
  <p>Does anyone have any clue how to get the new image url efficiently?</p>
  
  <p>Any help is greatly appreciated!</p>