Question about Facebook functions

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]

Does anyone know this question? Here is what it says in the docs. First it says to get or post to the logged in Facebook account. Then the second line says i can post messages and photos to friends accounts. How do you specify what friend you want to do this for? After logging in how do I switch over to the friend’s account? Is that a request I need to do first? Anyone have an example of this?
Overview

Get or post data to the logged in Facebook account.

Can be used to post messages and photos to the account and friends accounts. Can also be used to get user data and recent posts.

The request comes back in the form of a fbconnect event that is sent to a listener. This listener was registered during the call to facebook.login().
[import]uid: 184193 topic_id: 32472 reply_id: 129256[/import]

Actually would I replace the me with the user id of who I want to post to?

facebook.request( "me/photos", "POST", attachment ) [import]uid: 184193 topic_id: 32472 reply_id: 129260[/import]

Don’t know that I can help you with much of this because I’ve never tried it but:

userid/photos

would be the same as:

me/photos

except that its their userId and not yours. [import]uid: 19626 topic_id: 32472 reply_id: 129298[/import]

Does anyone know this question? Here is what it says in the docs. First it says to get or post to the logged in Facebook account. Then the second line says i can post messages and photos to friends accounts. How do you specify what friend you want to do this for? After logging in how do I switch over to the friend’s account? Is that a request I need to do first? Anyone have an example of this?
Overview

Get or post data to the logged in Facebook account.

Can be used to post messages and photos to the account and friends accounts. Can also be used to get user data and recent posts.

The request comes back in the form of a fbconnect event that is sent to a listener. This listener was registered during the call to facebook.login().
[import]uid: 184193 topic_id: 32472 reply_id: 129256[/import]

Actually would I replace the me with the user id of who I want to post to?

facebook.request( "me/photos", "POST", attachment ) [import]uid: 184193 topic_id: 32472 reply_id: 129260[/import]

Don’t know that I can help you with much of this because I’ve never tried it but:

userid/photos

would be the same as:

me/photos

except that its their userId and not yours. [import]uid: 19626 topic_id: 32472 reply_id: 129298[/import]