I am trying to post an image to my own profile using the ActionScript SDK.
I have verified that i have the publish_stream and user_photos permissions.
I am logged in and can read Albums and Images.
Using this code:
var bitmap:Bitmap = new Bitmap(bitmapData);
var request:Object = new Object();
request.access_token = Facebook.getSession().accessToken;
request.message = "my message";
request.image = bitmap;
request.fileName = "filename.jpg";
meFacebook.api("/me/photos", postImageToUserCallback, request, URLRequestMethod.POST);
i always see the request failing with a
Error #2032: Stream Error. URL: https://graph.facebook.com/me/photos
I am totally stuck here. What could be the problem and how can i debug this the best way?
Thanks!