logo
down
shadow

Invalid photoURL while logged with Facebook


Invalid photoURL while logged with Facebook

By : Roger
Date : October 18 2020, 03:08 PM
it fixes the issue Firebase auth with Facebook returns a invalid photoUrl in the currentUser object. However, you can use the providerData list object to get the correct photoUrl from your auth provider:
code :
this.afAuth.auth.currentUser.providerData[0].photoURL


Share : facebook icon twitter icon
How do you make 2 different views for logged in/not logged in like facebook's newsfeed/login pages?

How do you make 2 different views for logged in/not logged in like facebook's newsfeed/login pages?


By : user3230760
Date : March 29 2020, 07:55 AM
should help you out That's almost about what I would do but I wouldn't use JavaScript. As a general rule JavaScript is not very secure.
Differentiate a not-logged-in Facebook user vs. a logged-in Facebook user but not authorize our application yet

Differentiate a not-logged-in Facebook user vs. a logged-in Facebook user but not authorize our application yet


By : user3841245
Date : March 29 2020, 07:55 AM
seems to work fine I have some troubles when using javascript code for Facebook invite friends. Details: , getLoginStatus() returns a Json object which is like :
code :
{
    status: one of 'not_authorized' / 'connected' / 'unknown'
    authResponse: ....
}
Facebook registration page - Invalid 'client_id' when not logged into Facebook

Facebook registration page - Invalid 'client_id' when not logged into Facebook


By : Anand Kumar
Date : March 29 2020, 07:55 AM
I wish this help you Just to confirm; I never actually fixed this properly. Instead I made a work around and was able to do a javascript check via the facebook sdk to see if the user was logged in or not when they first hit the page that has the facebook registration form.
I do an http redirect if they aren't logged in (or aren't authorised) and if they are logged in later in the page I call to init the facebook form.
code :
window.fbAsyncInit = function() {
FB.init({
    appId      : xxxx, // App ID
    channelUrl : 'http:///xxxxx/fbchannel.php', 
    status     : true, // check login status
    cookie     : true, // enable cookies to allow the server to access the session
    xfbml      : true  // parse XFBML
});

// Additional initialization code here
FB.getLoginStatus(function(response) {
    if (response.status === 'connected') {
        // all ok!
        //var uid = response.authResponse.userID;
        //var accessToken = response.authResponse.accessToken;
    } else if (response.status === 'not_authorized') {
        window.location.href="create_account_with_facebook?authorizefirst";
    } else {
        window.location.href="create_account_with_facebook?loginfirst";
    }
});
};
// Load the SDK Asynchronously
(function(d){
    var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
    if (d.getElementById(id)) {return;}
    js = d.createElement('script'); js.id = id; js.async = true;
    js.src = "//connect.facebook.net/en_US/all.js";
    ref.parentNode.insertBefore(js, ref);
 }(document));
Hi I am logging in to facebook and logged out. And when the second time i logged in i need to check Whether the it is a

Hi I am logging in to facebook and logged out. And when the second time i logged in i need to check Whether the it is a


By : Jeremy Zerbib
Date : March 29 2020, 07:55 AM
I hope this helps . Save FBID in NSuserdefault.
And On login page compare OLDFBID(stored in NSUserdefaults) with NEWFBID. If both are matched then it is existing user. And not matched then New user. and store new FBID in NSUserdefault.
code :
When userlogin,

If (nsuserdefault ==nil)
{
 //store FBID in userdefault
FBID = (Store here); // 
}
else //If value available in nsuserdefault
   {
     if (OLDFBID == NEWFBID)
      {
       // Existing User
      }
     else 
     {
        //New user 
       // Replace new FBID with OLD in NSUserdefault.
     }

}
Firebase Anonymous Login - Why FirebaseID changes when logged to Facebook, but it remains the same when not logged to Fa

Firebase Anonymous Login - Why FirebaseID changes when logged to Facebook, but it remains the same when not logged to Fa


By : user3299226
Date : March 29 2020, 07:55 AM
will be helpful for those in need The API documentation for signInAnonymously (javascript) reads:
shadow
Privacy Policy - Terms - Contact Us © soohba.com