facebook api on android: blank screen instead of auth

后端 未结 4 1451
暗喜
暗喜 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:39

    They recognized the problem and started to investigate:

    Click

    0 讨论(0)
  • 2020-12-11 03:46

    Edit: I've tried multiple different apps that require a Facebook login, and all of those had the same problem. Seems like it may be a bug on Facebook.

    0 讨论(0)
  • 2020-12-11 03:54

    I have the same issue using Titanium mobile development on andorid and both using a webview or using SSO give the same result.

    Edit: A bug has been filed so please sign up to it as well: https://developers.facebook.com/bugs/385350798163367?browse=search_4f8ed4596fd900857644164

    0 讨论(0)
  • 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 .

    0 讨论(0)
提交回复
热议问题