Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8621837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:54:29+00:00 2026-06-12T06:54:29+00:00

Im using linkedin’s JS api to get some user profile information. I have this

  • 0

Im using linkedin’s JS api to get some user profile information. I have this in my header:

<script type="text/javascript" src="http://platform.linkedin.com/in.js">
api_key: xxxxx
authorize: false
onload: getProfileData
</script>

And this is what i am using to pull the data:

<script type="text/JavaScript">

function getProfileData(){
IN.API.Profile("me").fields(["firstName","lastName","headline","summary"]) .result(function(result) {
   alert JSON.stringify(result)) 
}
</script>

However (checking through firebug) I do not what i asked it for. Instead it does a get request for standard information:

https://api.linkedin.com/v1/people::(~):(id,first-name,last-name,headline,picture-url)

Anyone know what this issue could be or how to fix? Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:54:30+00:00Added an answer on June 12, 2026 at 6:54 am

    It looks like there are a number of errors in your code:

    First, using authorize: false with an onLoad callback will not work, as authorize: false requires the user to manually ‘SignIn’ for every page load, and the onLoad call takes that option out of their hands. Secondly, you have onload in the bootstrap section, it should be onLoad. The following will fix both of these:

    <script type="text/javascript" src="http://platform.linkedin.com/in.js">
      api_key: xxxxx
      authorize: true
      onLoad: getProfileData
    </script>
    

    Additionally, you are missing a number of brackets, etc in the actual worker code – the following should work:

    <script type="text/javascript">
      function getProfileData() {
        IN.API.Profile("me")
          .fields(["firstName", "lastName", "headline", "summary"])
          .result(function(result) {
            alert(JSON.stringify(result));
          });
      }
    </script>
    

    Keep in mind, if you would like to get anything more than the basic fields, you will need to ask for permission from the user.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is regarding about LinkedIn group API. I'm using this API to get relevant
I am using linkedin api to get info about the logged in user. I
I am using LinkedIn API. I have done all process to retrieve access token.
I'm using the linkedin JS-API This example I'm accepting the company name from the
I'm trying to connect to the linkedin API using the linkedin gem. I have
I am using linkedin api for android linkedin-j-android.jar. Through this i can login to
I noticed that using LinkedIn REST API in my application, i have a strange
This is my first time using the LinkedIn API. I am using Python. I
I am trying to get the Connections or user's friends info from LinkedIn using
I am writing some rest calls to the LinkedIn API using web request and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.