Is there a way how to upload several images to facebook?
I can upload one image - no probs:
function onClick(e:mouseEvent):void
{
var params:Object = {
image:myBitmap,
message:"New Image",
fileName:"fileName"
};
Facebook.api('me/photos/', onSaveToPhotoAlbumComplete, params, 'POST');
}
function onSaveToPhotoAlbumComplete(success:Object, fail:Object):void
{
if (fail)
{
response.text="FAILED";
}
else
{
upResponse.text="DONE!";
}
}
So how to do it with several images? Anyone done this…?
I tried this but no luck:
function onClick(e:mouseEvent):void
{
var params:Object = {
image:myBitmap3, image:myBitmap2, image:myBitmap3,
message:"New Image",
fileName:"fileName"
};
Facebook.api('me/photos/', onSaveToPhotoAlbumComplete, params, 'POST');
}
or
function onClick(e:mouseEvent):void
{
var params:Object = {
image:[myBitmap1, myBitmap2, myBitmap3],
message:"New Image",
fileName:"fileName"
};
Facebook.api('me/photos/', onSaveToPhotoAlbumComplete, params, 'POST');
}
Any thoughts?
Thnx!