I have installed the plugin and configured it in the linkedin website
scopes: LinkedInLoginScopes[] = ['r_basicprofile', 'r_emailaddress', 'rw_company_admin', 'w_share'];
linkedinLogin() : void {
this.linkedin.login(this.scopes, true)
.then(() => {
// get connections
this.linkedin.getRequest('people/~:(id,email-address,firstName,lastName,headline,pictureUrl,public-profile-url,positions:(is-current,company:(name)))?format=json')
.then(profile => {
alert(JSON.stringify(profile));
this.userData = {
username: profile['headline'],
picture: '',
email: '',
first_name: profile['firstName'],
last_name: profile['lastName'],
perfil: profile['siteStandardProfileRequest']['url']
}
}).catch(e => alert('Erro get connections: ' + e));
}).catch(e => alert('Erro Login' + e));
}
when I click on the button(linkedinLogin()) I don’t get any response nor it does through any error. just no action takes place.