Post message to facebook wall from android fb sdk always error

前端 未结 3 816
情话喂你
情话喂你 2020-12-01 08:28

I have problem with fb sdk for Android (downloaded from http://github.com/facebook/facebook-android-sdk). Tried to post wall but always get error (permission already set and

3条回答
  •  旧巷少年郎
    2020-12-01 08:40

    I think the error message is quite clear... "Key picture expected byte[] but value was a java.lang.String."

    The value for the key "picture" in your Bundle params should be a byte array, not a String.

    edit: Didn't read Cristian's answer. I'm pretty sure you should pass along the actual image data, not the filename in bytes. But I could be wrong.

    another edit: Yeah, so I'd downvote my own answer if I could, but it seems I didn't even read the question properly. The error happens not just for picture, so I have no idea what's wrong...

提交回复
热议问题