GithubHelp home page GithubHelp logo

Comments (4)

MatasJonys avatar MatasJonys commented on July 21, 2024

Could you collaborate how you setup your permissions?
Do you request for 'r_basicprofile' permissions on login?

#15 might help you.

from meteor-accounts-linkedin.

nolandg avatar nolandg commented on July 21, 2024

I have similar issue. I am requesting r_basicprofile and the information is received by Meteor. When I check Meteor.user(), the name and email properties are filled. But nothing appears in the UI, it seems the accounts-ui is not getting the name or email from linkedin. It works well using Google.

Any thoughts?

from meteor-accounts-linkedin.

nvtdev avatar nvtdev commented on July 21, 2024

I had the same problem, the thing is in the user object there are _firstName _and _lastName _fields but NOT a name field and this is the one used with the login buttons. I tried assigning that field upon registration but I'm still a newbie at Meteor so couldn't do it and switched to this package:

https://atmospherejs.com/jonperl/accounts-linkedin

If someone figures a way to do it though please share how.

from meteor-accounts-linkedin.

raza2022 avatar raza2022 commented on July 21, 2024

@nvtdev same issue am just tried a hack! but works :

Meteor.startup(function () {
    Accounts.onCreateUser(function ( options, user ){
        if ( options.profile ) {
            user.profile = options.profile;
            if ( options.profile.numConnections ) {
                user.profile.name = options.profile.firstName + " " + options.profile.lastName
            }
        }
        return user
    })
});

from meteor-accounts-linkedin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.