How To Fix Key Picture Expected byte[] But Value Was A String. The Default Value Was Returned Error In Facebook SDK For Android

As of this writing, this fix works for the Android SDK that I just downloaded. This is not an error actually but a warning. It is not a show stopped and does not hinder the operation of your app. However, no developer wants to see log files like this even though it is just a warning.

To fix this warning message from appearing and happening again, go to the Util.java file of the Facebook SDK for Android library. In lines 63 and 156 change the following:

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

Related Posts Plugin for WordPress, Blogger...

1 comment

Leave a Reply

Your email address will not be published. Required fields are marked *