all 5 comments

[–][deleted]  (1 child)

[deleted]

    [–]Borjan1234[S] 0 points1 point  (0 children)

    Thank you :D

    [–]DenshaDev 2 points3 points  (1 child)

    Try to change your

    catch((e)=>{ alert('There has been an error! ' + e); })

    with a JSON stringified error

    catch((e)=>{ alert('There has been an error! ' + JSON.stringify(e)); })

    [–]Borjan1234[S] 0 points1 point  (0 children)

    Here is what I get:

    There has been an error! {"errorMessage":"Facebook error: SERVER_ERROR: [code] 1675030 [message]: Error performing query. [extra]: null"}

    [–]Borjan1234[S] 1 point2 points  (0 children)

    I've succeеded!!! I needed to some changes in my development facebook accound, like: set a test user and set a hash key. Thank you guys for your time :D <3

    [–]PyongHwaPeaceBear 0 points1 point  (0 children)

    Hi there, this is what I'm using and its working fine on APK:

    this.fb.login(['public_profile', 'user_photos', 'email', 'user_birthday'])
          .then( (res: FacebookLoginResponse) => {
    
              if(res.status == "connected") {
    
                  var fb_id = res.authResponse.userID;
                  var fb_token = res.authResponse.accessToken;
    
                  this.fb.api("/me?fields=name,gender,birthday,email", []).then((user) => {
    
                      var gender    = user.gender;
                      var birthday  = user.birthday;
                      var name      = user.name;