freshplanet / ANE-Facebook

Air Native Extension (iOS and Android) for the Facebook mobile SDK
Apache License 2.0
221 stars 123 forks source link

Not posting photo on facebook #81

Closed zarnaagames closed 10 years ago

zarnaagames commented 11 years ago

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.

ataugeron commented 10 years ago

See #28