socialize / socialize-sdk-android

Socialize SDK for Android. An Android social sharing SDK for native apps.
www.getsocialize.com
Apache License 2.0
147 stars 57 forks source link

Facebook integration issue #29

Open achin42 opened 10 years ago

achin42 commented 10 years ago

Have found the following bug and fixed it.

While logging through Facebook for Android, got following authentication error in logs.

"Key com.facebook.platform.protocol.PROTOCOL_VERSION expected String but value was a java.lang.Integer. The default value was returned."

Problem : probably facebook_app_id is taken up from 'socialize.properties' and sent to facebook as Integer, while it is to be received in Facebook SDK in 'AuthorizationClient' file, line 820.

Solution: have changed the above line in Facebook SDK to "addLoggingExtra(EVENT_EXTRAS_PROTOCOL_VERSION, String.valueOf(intent.getIntExtra(NativeProtocol.EXTRA_PROTOCOL_VERSION, 0)));"

Note: Ideal solution is to pass facebook_app_id as String.

lynksant commented 8 years ago

Hi, Could you copy this bug here? https://getsatisfaction.com/socialize/topics/

Thanks, Leonid