So I am trying to use the facebook API to send a photo. I've got it all working, but the issue is that due to our server environment (everything is stored at s3) there is no concept of local file paths, so when I'm supposed to do this: 'source' => '@'.realpath($FILE_PATH) I can't because all I technically have is the URL. I know that it doesn't work with URLs. What's my best bet to get this working? Saving a photo locally and then deleting it after uploading is an option, but seems like a horrible waste of bandwidth....
A:
A quick glance at the curl documentation suggests that you'll need to do what you're suggesting. Downloading a file locally just to upload does seem like a horrible waste of bandwidth, however, it may be necessary in this case. Unless the facebook API supports URLs in addition to files, I can't immediately see an alternative.
asnyder
2010-08-12 15:44:04