What is wrong with this Facebook code?

Hi,

I have been able to post pictures to my Facebook page with the code below but without the tags included. I added the tags line which I thought was correct and does not post now. Does anyone know how to do the tags with this and have a user id to include for the tag? Do I have something formatted wrong?

Thanks!

 local attachment = { message = field1.text, source = { baseDir=system.TemporaryDirectory, filename="CameraShot2.jpg", type="image", }, tags = { tag\_uid=xxxxxxxxxxxxxx, x=40, y=50 } } facebook.request( "me/photos", "POST", attachment )

I also found some php code they used to post with tags and did it with these. Seems every example has different field names. Has anyone done tags successfully?

PHP example:

$tags = array( 'id' =\> '100000834278\*\*\*', // masked 'name' =\> 'MY\_FRIENDS\_NAME', // masked 'offset' =\> 0, 'length' =\> 15 // friend name length );

I changes the tags to be message_tags shown in the code below and it now post the picture on my site but nothing shows on my friend’s site. Not even to approve any tag. And I am using the user id from him. I just replace the www with graph in the url to get the id.

 local attachment = { message = field1.text, source = { baseDir=system.TemporaryDirectory, filename="CameraShot2.jpg", type="image", }, message\_tags = { tag\_uid=xxxxxxxxxxxxxx, x=40, y=50 } } facebook.request( "me/photos", "POST", attachment )

Any thoughts?

Thanks

I changes the tags to be message_tags shown in the code below and it now post the picture on my site but nothing shows on my friend’s site. Not even to approve any tag. And I am using the user id from him. I just replace the www with graph in the url to get the id.

 local attachment = { message = field1.text, source = { baseDir=system.TemporaryDirectory, filename="CameraShot2.jpg", type="image", }, message\_tags = { tag\_uid=xxxxxxxxxxxxxx, x=40, y=50 } } facebook.request( "me/photos", "POST", attachment )

Any thoughts?

Thanks