All I have is a fb url for fb login for my webapp. I need to load the url, check if the url has some keywords and Authenticate the user. The problem is when I try to load the url in the browser, I coundn't check the url since it goes out of the project and fb does not support iframe also. How can I load the url and check for the change?
I have tried the following code:
$scope.FbLogin = function ()
{
var i = 0;
window.location.replace("fburl");
while (i == 0)
{
var fburl = window.location.href;
if (fburl.includes('&email'))
{
//my logic
}
}
At window.location.replace("fburl"), I lose the control over the project which is obvious. Iframe cant be used....Any other ways?