title: Facepy unable to upload image to Facebook
body: <p>I'm trying to use <a href="https://github.com/jgorset/facepy" rel="nofollow noreferrer">Facepy</a>, a sort of API for Facebook and Python, to simply post an image from my desktop to a Facebook page for which I have the authorization code and publish_stream and upload_photo permissions.  (<strong>UPDATE</strong>:  how do I <strong>verify</strong> that that is true?)</p>
  <p>It's not working for me, though it <em>is</em> working for the author of Facepy.  I'm at a loss for what is causing the issue.  When I run this code, taken from the Facepy site (and using a .jpg on my computer):</p>
  <p><strong>UPDATE</strong>:  This is the entirety of the code I am running:</p>
  <pre><code>from facepy import GraphAPI
  
  print 'Trying Facebook page...'
  my_token = 'xxxxxxxxxxxxxxxxx'
  graph = GraphAPI(my_token)
  
  # Get my latest posts
  my_posts = graph.get(&quot;me/posts&quot;)
  
   #Post a photo of a parrot
  graph.post(path = &quot;me/photos&quot;,source = open(&quot;python.png&quot;))
  
  print 'Done.'
  </code></pre>
  <p>Facepy returns this error:</p>
  <pre><code>Error: (#1) An unknown error occurred
  </code></pre>
  <p>I have tried it, unsuccessfully, with Python 2.5 and Python 2.7 on WinXP.  Facepy can, however, get my latest posts, with <code>graph.get('me/posts')</code></p>
  <p>Any advice to get this to work would be appreciated.</p>