Hi,
I was reading about the Facebook library and saw an example of how to post an image. I have a couple questions.
How can I upload a picture to another Facebook account? What I want to do it take a picture with the camera and then automatically have it uploaded to a specific Facebook account rather than my own. Can I do this? It says in the docs I can post messages and photos to friends accounts. Where do I specify the friend’s account to post it to? I don’t want to see the facebook web page - I want all of the posting to happen in the background without any FB user interface so it is automated.
From http://docs.coronalabs.com/api/library/facebook/request.html
“Can be used to post messages and photos to the account and friends accounts.”
Thanks!
[code]
– Example of how to upload a photo
– (NOTE: available starting in daily build 2011.709)
local attachment = {
message = “Corona Icon file”,
source = {
baseDir=system.DocumentsDirectory,
filename=“coronaIcon.png”,
type=“image”
},
}
facebook.request( “me/photos”, “POST”, attachment )
[/code] [import]uid: 184193 topic_id: 32472 reply_id: 332472[/import]