I’m trying to upload a file (from byte array) to Facebook using Facebook for Android SDK 3.0. I have added permission publish_actions as shown in the SDK samples. Still, I get the following error on upload:
{HttpStatus: 400, errorCode: 324, errorType: OAuthException, errorMessage: (#324) Requires upload file}
Google gives me nothing on this one.
What am I doing wrong?
Do you have the relevant code? This is the code I use to upload photos using the Android SDK, and I have verified that it works:
This is supplying the method with a
BitMap, it seems like you’re calling the method that takes in aFile. You have to choose either to supply aBitMapor a validFileobject.