Closed ciccilleju closed 3 years ago
This may not plugin issues. Please check appsecret_proof
.
This is my worked code:
return this.httpService
.get<{
data: IFacebook;
}>(`https://graph.facebook.com/v5.0/me?fields=id,email,first_name,gender,last_name`, {
params: {
access_token: FacebookToken,
appsecret_proof: appSecret,
},
})
.pipe(
first(),
map((d) => d.data),
)
.toPromise(Promise);
Hello, i'm using the capacitor facebook login with an ionic 5 app. this is a snippet of my code:
` import { Plugins } from '@capacitor/core';
export class WelcomePage implements OnInit {
constructor(private router: Router) {} async fbLogin() { const FACEBOOK_PERMISSIONS = ['public_profile', 'email']; const result = await Plugins.FacebookLogin.login({ permissions: FACEBOOK_PERMISSIONS });
loginFacebook(res, navigationExtras) { console.log(res); console.log(navigationExtras);
console.log(error); }); } } `
But the only values i'm getting back inside userinfo are token and userId, i got no name or surname and no email address.
What am I doing wrong?
thanks!