Wednesday, 30 January 2013

Parse Android SDK, Facebook and ProGuard

If you're logging into Facebook via the Parse Android SDK and are building your application package (apk) with ProGuard enabled, here's what you'll need to add to your proguard-project.txt file:

# need this for Facebook SDK
-keepattributes Signature

-dontwarn com.facebook.**
-dontwarn com.parse.**

-keep class com.facebook.** { *; }
-keep class com.parse.** { *; }

6 comments:

  1. Thanks so much!! I spent all day yesterday trying to figure this out with the new Facebook API and finally found this solution this morning and it worked! :)

    ReplyDelete
  2. I have the same problem but cant figure out how to fix it

    ReplyDelete
  3. I have the same problem but cant figure out how to fix it

    ReplyDelete
    Replies
    1. Can any help me im dumb when it comes to this stuff

      Delete
  4. What if you don't use proguard?

    ReplyDelete
  5. If you don't use proguard, then you don't need to add anything to your 'proguard-project.txt' file and it's irrelevant for your purposes.

    ReplyDelete