Android Facebook API Shows White Blank Page [duplicate]


This question already has an answer here:

<ul><li> <a href="/questions/10202245/facebook-api-on-android-blank-screen-instead-of-auth" dir="ltr" rel="nofollow">facebook api on android: blank screen instead of auth</a> <span class="question-originals-answer-count"> 4 answers </span> </li> </ul>

I am using Android Facebook API but when I click on login button of Facebook it opens the white screen blank just as the image attached. Please suggest some solutions to me.

<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/OM7KH.png" data-original="https://i.stack.imgur.com/OM7KH.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

public void facebookLogin(FacebookLoginHandller target) { try { this.superLocal = target; if (facebook == null) { facebook = new Facebook(APPID); } if (facebook.isSessionValid()) { superLocal.loginStatus(1); } else { facebook.authorize(Activity.this, PERMISSIONS, Facebook.FORCE_DIALOG_AUTH, new LoginDialogListener(new FacebookLoginHandller() { @Override public void loginStatus(int status) { if (status == 1) { superLocal.loginStatus(1); } } })); } } catch (Exception e) { e.printStackTrace(); } }




at the end of com.facebook.widget.WebDialog.setUpWebView() worked for me.(Facebook SDK 3.0+)


Steps to solve this issue

Open your facebook library ( com.facebook.android) which is added as library

Open FaceBook.java class

In that we will found private static final int DEFAULT_AUTH_ACTIVITY_CODE = 32665.

You should change to DEFAULT_AUTH_ACTIVITY_CODE to -1

Now save it and clean and build both library and your application

<strong>Note :</strong>

this blank screen appear only for latest versions only .


  • New User vs Old Firebase Facebook Authentication [closed]
  • Get Facebook friend list in android
  • Aurelia JS - iterate through children (kendo UI) elements?
  • How can I .htaccess 301 redirect all pages/files (except for one) to new domain?
  • mysql user row level access
  • Hide Referer (PHP, or HTML, or JS Doesn't matter)
  • Validate field and throw exception in JSF, but attach error message to another field?
  • UICollection View causes “UICollectionViewFlowLayoutBreakForInvalidSizes” on smaller devices
  • XJC javaType adapter in complexType
  • How to dynamically configure a REST mock in SoapUi?
  • Laravel / Eloquent hasMany relationship sum()
  • copy an attribute of a property from one instance to another instance (of a different type ) at runt
  • In a django custom field, what does the SubfieldBase metaclass do?
  • Webview with read more
  • Samsung phones and Notification.FLAG_INSISTENT bug?
  • Define height of select box
  • Celery + Redis - .get() hangs indefinitely after running smoothly for ~70 hours
  • allow scroll of div set behind another div
  • receiving X509 client certificates in web requests
  • Issues with wmode=“opaque” and issues with wmmode=“window”
  • How to Hide Navigation bar back button title globally in xamarin.ios
  • How to add System.Windows dll to Visual Studio 2010 express?
  • How to work with Master Page that is attached to the page via the page's basepage?
  • Fire callback when selection was made with select2 4.0, and retrieve the value of last selection
  • Iterate twice through a DataReader
  • jQuery: add elements until a particular height is reached
  • Redshift Querying: error xx000 disk full redshift
  • Sonar maven jacoco code coverage for Multimodule project
  • Rails Find when some params will be blank
  • Deselecting radio buttons while keeping the View Model in synch
  • Shallow update not allowed (git > 1.9)
  • jquery mobile loadPage not working
  • How can I estimate amount of memory left with calling System.gc()?
  • How to include full .NET prerequisite for Wix Burn installer
  • Qt: Run a script BEFORE make
  • unknown Exception android
  • EntityFramework adding new object to nested object collection
  • Checking variable from a different class in C#
  • failed to connect to specific WiFi in android programmatically
  • How can I use threading to 'tick' a timer to be accessed by other threads?