title: How to post facebook wall with uploaded image/video attachment using koala gem?
body: <p>I am doing a rails project that involved using Koala gem to call facebook graph API.
  Is it possible  to post to facebook wall with picture/video attachment (not picture link) via graph API?</p>
  
  <p>I'm able to to put picture using this command</p>
  
  <pre><code>graph = Koala::Facebook::API.new(access_token)
  graph.put_picture(params["picture_path"]) #where params["picture_path] is ActionDispatch::Http::UploadedFile object
  </code></pre>
  
  <p>but this only upload to album</p>
  
  <p>I failed doing this:</p>
  
  <pre><code>graph = Koala::Facebook::API.new(access_token)
  graph.put_wall_post("hello", {"picture" =&gt; params["picture_path"]} ) #where params["picture_path] is ActionDispatch::Http::UploadedFile object
  </code></pre>
  
  <p><br/>
  Error:</p>
  
  <pre><code> undefined method `local_path' for #&lt;ActionDispatch::Http::UploadedFile:0x00000106100a70&gt;
  </code></pre>
  
  <p>Help ?</p>