I need to load my login web page URL to my app via webview(Android).In my web url contains Facebook and Google oauth login. Login with Google was working fine but while login with facebook gives me a Blank Page.
I saw so many answers regarding the same issue on Stack Overflow.But i did't get the working solution.
Based on my research i think the problem was facebook open a popup window while logging in.Even i tried redirected the url based on the facebook. I tried the following code for redirecting but not worked for me.
if(url.startsWith("https://www.facebook.com/dialog/oauth")){
String redirectUrl = "http://www.example.com";
view.loadUrl(redirectUrl);
return;
}
So please help any one how can i achieve the solution.Thanks in advance.