Talk:Photos.upload

From Facebook Developer Wiki

Jump to: navigation, search

Contents

[edit] sig md5

How does the raw image data/filename etc affect the sig hash? Is it included in any way? I keep getting error 104 and I'm not sure why. - 193700405 10:05, 14 October 2008 (PDT)

nobody? lol. why is this call so difficult to make correctly?

Edit: Got it working. My pro tip that I carry away from this experience is: don't hash blank optional parameters as well as the mandatory ones. The raw image data does not get included in the hash. - 193700405 10:02, 30 October 2008 (PDT)

[edit] Supported MIME types

What MIME types does this API support? In other words, what images files can be uploaded without causing a "324 - Missing or invalid image file" error?

[edit] News Feed vs. Uploaded Photos

New photos that get added to a user's Photo Album via the photos.upload API don't seem to show up in the users' friends' News Feeds in the way that new additions to Wall Photos or other Photo Albums do. Seems odd given how compelling photo content can be and how great Facebook is for sharing photos. Anyone from Facebook know why this is the case?

Thanks for bringing this up. It's a known issue that we're working on. I can't give you an ETA as to when we'll release a fix for this. -- Pete (563683308 14:46, 23 January 2009 (PST))

Pete, I encounter the issue, too. But Video.upload is fine. Will you have a fix for this? Thanks a lot! -- Edward

[edit] News Feed vs. Uploaded Photos

Pete, I encounter the issue, too. But Video.upload is fine. Will you have a fix for this? Thanks a lot! -- Edward

I'm trying to use this function from a desktop app using flash, I'm pretty sure I'm submitting the post request properly, but I'm getting the following response:

12

 This API version is deprecated
 
   
     Filename
     vga2bnc.gif
   
   
     Upload
     Submit Query

Anyone have any idea what this is about?

I confirm i have :

<?xml version="1.0" encoding="UTF-8"?>
<error_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.facebook.com/1.0/   http://api.facebook.com/1.0/facebook.xsd">
 <error_code>12</error_code>
 <error_msg>This API version is deprecated</error_msg>
 <request_args list="true">
   <arg>
     <key>api_key</key>
     <value>---</value>
   </arg>
   <arg>
     <key>call_id</key>
     <value>---</value>
   </arg>
   <arg>
     <key>format</key>
     <value>JSON</value>
   </arg>
   <arg>
     <key>method</key>
     <value>Photos.upload</value>
   </arg>
   <arg>
     <key>session_key</key>
     <value>---</value>
   </arg>
   <arg>
     <key>sig</key>
     <value>---</value>
   </arg>
 </request_args>
</error_response>
reference