I am trying to post an image as a staging resource to Facebook. The path for uploading staging resource image is me/staging_resources which works perfectly with the iOS SDK. However, when I try to post the image:
dynamic result = await Client.PostTaskAsync("/me/staging_resources", image);
I am getting an exception in Facebook.DLL telling that the URI is too long (after about 15 seconds). The image object is a dynamic object with a file member which is the byte array of a JPEG file. I've tried lots of other ways of posting the image data but always got different errors about not providing correct image data, and now I'm not getting those errors, it possibly is the way to post the image (it even complained if I didn't make a file member of the object, it explicitly want file to be the binary image data). What could I be doing wrong, and how can I upload a staging resource to Facebook?