Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Share multiple images in Facebook

$
0
0

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({

                &quot;picture&quot; : pic

            });

Plese help me..Sorry for my poor Language....Thanking You in advance..


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>