facebook api on android: blank screen instead of auth

后端 未结 4 1511
暗喜
暗喜 2020-12-11 03:22

I\'ve searched for the past 3 hours for answers regarding this problem, and similar questions did not help, so I\'m finally asking the question:

I\'m trying to use F

4条回答
  •  醉话见心
    2020-12-11 03:54

    After lot of effort I solved that error. It very simple. This is error will appear above 2.2 android version. May be it's cause of hash key error.

    Steps to solve this issue

    1. Open your facebook library ( com.facebook.android) which is added as library
    2. Open FaceBook.java class
    3. In that we will found private static final int DEFAULT_AUTH_ACTIVITY_CODE = 32665. You should change to DEFAULT_AUTH_ACTIVITY_CODE to -1
    4. Now save it and clean and build both library and your application

    Note :

    this blank screen appear only for latest versions only .

提交回复
热议问题