I am facing an issue in uploading photo using graph api.
Here is my code
//post photo
var obj:Object = new Object();
var bu:Button1 = new Button1();
var bt:Bitmap = new Bitmap();
bt = bu as Bitmap;
var bmd:BitmapData = new BitmapData(bu.width,bu.height);
bmd.draw(bu);
obj["message"] = "myphoto upload message";
obj["image"] = new Bitmap(bmd);//bmd.getPixels(new Rectangle(0,0,100,100));
Hi brother, Thanks for this free plugin.
I am facing an issue in uploading photo using graph api.
Here is my code
//post photo var obj:Object = new Object();
var bu:Button1 = new Button1(); var bt:Bitmap = new Bitmap(); bt = bu as Bitmap; var bmd:BitmapData = new BitmapData(bu.width,bu.height); bmd.draw(bu);
obj["message"] = "myphoto upload message"; obj["image"] = new Bitmap(bmd);//bmd.getPixels(new Rectangle(0,0,100,100));
fb.requestWithGraphPath("me/photos",obj,"POST",FotoPosted);
Its not printing any error and not posting photo also. Will you please let me know exactly where I am going wrong????
Thanks in advance.