[SOLVED] Facebook photo posting

Is it possible to post a photo stored locally? I am trying it like this-

local path = system.pathForFile( "Classic.png", system.ResourceDirectory )  
  
facebook.login( facebookAppId, facebookListener, {"publish\_stream"} )  
  
local attachment = {  
 message = "test",   
 source = path   
 }  
facebook.request( "me/photos", "POST", attachment )  

The only reason I am doing it with a /photos instead of /feed is that is seems that the picture included with a feed post has to be on a web address, and it won’t receive a locally stored photo.
Any suggestions?

I have already tried photos in the Resource, Temporary, and Documents directory. I have also tested with the standard post using a me/feed post, but it will not go to the wall if it is a local address (web address only). I am testing on an iPad. [import]uid: 10008 topic_id: 11538 reply_id: 311538[/import]

Hi!

I’m trying to do this too.
I need to post a photo stored locally on the wall of one of my friends, is it posible?

Regards! [import]uid: 44013 topic_id: 11538 reply_id: 52366[/import]

That seems feasible if you can get the user ID and request access to the photo. As long as it has a web link, you can put it as the image in a me/feed post. [import]uid: 10008 topic_id: 11538 reply_id: 52390[/import]

Hi Tyler!

I think so. I suppose I must get a list of all of my friends, choose one, and then, with her/his ID, try to post on her/his wall. It seems there’s no a simplest way…

What about trying to post a locally stored photo?, did you solve this question? [import]uid: 44013 topic_id: 11538 reply_id: 52476[/import]

This functionality has been added as of daily build 2011.707.

Here’s a tutorial:
http://blog.anscamobile.com/2011/12/uploading-photos-to-facebook-in-corona/

NOTE: The tutorial has important information for any iOS apps that use Facebook library (even if you do not intend to upload photos). [import]uid: 52430 topic_id: 11538 reply_id: 74242[/import]