Please advice me how to share multiple images in Facebook. Right now i am using the code
'fb.requestWithGraphPath('me/photos', media[count], "POST", showRequestResult); '
and in 'showRequestResult()' function am checking if it is success, then incrementing the 'count' and calling the 'postimage' function again and i am getting error like "FAIL;(#324) Requires upload file". some time it is posting all the images,some time 1 or 2, sometime nothing
I am using this to store the image url in 'media' and i am pushing all the image url that i am getting from web service to imageArrarForFb.
for ( img = 0; img < imageArrarForFb.length; img++) {
var imageView = Titanium.UI.createImageView({
image : imageArrarForFb[img],
width : 200,
height : 200,
visible : false,
touchEnabled : false
});
$.win.add(imageView);
pic = imageView.toBlob();
$.win.remove(imageView);
media.push({
"picture" : pic
});
Plese help me..Sorry for my poor Language....Thanking You in advance..