Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I would not go that way if i were you. The cURL method has proven to be, for me at least, a tad too complicated. These are the steps that has to be taken, below you can see a link to a great <strong>recent</strong> blog post about this exact issue:</p> <ol> <li>Get user's <code>user_photos</code> and <code>publish_stream</code> (not necessary, but good for future development).</li> <li>Create album on behalf of user, which will contain the photo you wish to upload.</li> <li>Get the album id of the album you just created.</li> <li>Specify the photo's parameters: The message to go along with it, the location of the file on the server, and a bunch of other stuff you can look up in <a href="http://developers.facebook.com/docs/reference/api/album/" rel="nofollow">this docs reference about publishing photos (bottom of page)</a>.</li> <li>Upload the photo with the given parameters.</li> </ol> <p><a href="http://daipratt.co.uk/facebook-api-upload-photo/" rel="nofollow">Dai Pratt's <strong>excellent</strong> tutorial on photo uploading via the <strong>New</strong> Graph API</a></p> <p><strong>IMPORTANT NOTE:</strong> There is a serious flaw in the script above-it does not check if the album exists already, in case you want to upload multiple photos on behalf of the user. It's important you store the user's id and the album id you created in a database, so you can query it each time the user wishes o upload an image, and create or not create an album accordingly. </p> <p><strong>EDIT</strong>: And now, after I've posted, I see the exact link in a comment here. Anyhow-hope this helps:)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload