title: How do I retrieve thumbnail from facebook ad api?
body: <p>With facebook ad api, I can send a query to retrieve ad image information.</p>
  
  <p>The following is the examples from facebook doc. <a href="https://developers.facebook.com/docs/reference/ads-api/adimage/v2.2" rel="nofollow">https://developers.facebook.com/docs/reference/ads-api/adimage/v2.2</a></p>
  
  <pre><code>curl -G \
  -d "access_token=&lt;ACCESS_TOKEN&gt;" \
  "https://graph.facebook.com/act_&lt;ACCOUNT_ID&gt;/adimages"
  
  curl -G \
  -d "hashes=[%220d500843a1d4699a0b41e99f4137a5c3%22,%22012feg987e98g789f789e87976210983%22]" \
  -d "access_token=&lt;ACCESS_TOKEN&gt;" \
  "https://graph.facebook.com/act_&lt;AD_ACCOUNT_ID&gt;"
  </code></pre>
  
  <p>Both calls work fine. But the problem is: they return just the array of image id and image hash, nothing else. Again, example from facebook doc. My test shows response with the same format. </p>
  
  <pre><code>{
      "data": {
         {
           "hash": "0d500843a1d4699a0b41e99f4137a5c3", 
           "id": "16522000:0d500843a1d4699a0b41e99f4137a5c3"
         }, 
         {
           "hash": "012feg987e98g789f789e87976210983", 
           "id": "16522001:012feg987e98g789f789e87976210983"
         }
       }, 
     "paging": {
       "cursors": {
         "before": "NDIyNDAzMzc0NDY4NjQxOjE2...",
          "after": "NDIyNDAzMzc0NDY4NjQxOmU5Njg..."
       }
     }
  }
  </code></pre>
  
  <p>Ad Image objects are supposed to have 'url', 'width', 'height', properties. But I cannot retrieve anything more than id and hash, whatever I try.</p>
  
  <p>Any way to get thumbnail url or other image properties using image hash or ad account id? </p>
  
  <p>What I want to achieve ultimately is make a migration from manual management to automatic api based management, and get the url/properties of images already uploaded to facebook (to be saved in db and reused when necessary). </p>