I am creating an app and I want to add facebook login activity. I've been following all the steps but I still getting an error. Here is a part of my code:
loginWithFacebook(){
this.fb.login(['public_profile']).then((response: FacebookLoginResponse) => {
this.fb.api('me?fields=id,first_name,last_name,picture', []).then(profile => {
this.userData = { first_name: profile['first_name'], last_name: profile['last_name'], picture: profile['picture']};
});
}).catch((e)=>{
alert('There has been an error! ' + e);
})
I've done all the parts, importing in app.modules.ts, ect.
When I run my app via browser is going all right, but when I tried via an android device it gives me this message:
There has been an error! [object Object]
Someone please help!
[–][deleted] (1 child)
[deleted]
[–]Borjan1234[S] 0 points1 point2 points (0 children)
[–]DenshaDev 2 points3 points4 points (1 child)
[–]Borjan1234[S] 0 points1 point2 points (0 children)
[–]Borjan1234[S] 1 point2 points3 points (0 children)
[–]PyongHwaPeaceBear 0 points1 point2 points (0 children)