Code

How should I handle Facebook login? Blank page ...

« See all FAQs for Universal Android WebView App

How should I handle Facebook login? Blank page is shown after signing in.

Open MainFragment.java in fragment package. Find onPageFinished method and add following piece of code under this line “showActionBarProgress(false);”: if(url.contains("facebook.com") && url.contains("dialog/oauth") && (url.contains("&refsrc") || url.contains("&domain"))) { Uri uri = Uri.parse(url); String callbackUrl = uri.getQueryParameter("refsrc"); if(callbackUrl==null) callbackUrl = "http://" + uri.getQueryParameter("domain"); view.loadUrl(callbackUrl); // callback URL }
by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey