Category : linkedin

I am trying to implement LinkedIn APIs in TypeScript, I am trying to do this: const script = document.createElement("script"); script.async = true; script.src = "https://platform.linkedin.com/in.js"; script.innerHTML = ` api_key: "Uv7LwmevowqJu9Sx", onLoad: "function here", //I’d like to reference this.onLoad, how? authorize: true, `; document.head.appendChild(script); console.debug(IN) //getting error here cannot find IN IN.Event.on(IN, "auth", this.OnLinkedInAuth); // getting ..

Read more

I am working on react project where I need to use the LinkedIn apis. I basically want to do the same as done here: https://www.c-sharpcorner.com/blogs/fetch-linkedin-data-using-javascript However, in my project, I only work with components, I don’t have control over the host page, so I can’t use tags to reference the linkedin apis. What I did ..

Read more

import ‘./App.css’; import Header from ‘./components/header’ function App() { return ( <div className=”App”> <Header /> <script src=”https://platform.linkedin.com/badges/js/profile.js” async defer type=”text/javascript”></script> <div class=”badge-base LI-profile-badge” data-locale=”en_US” data-size=”medium” data-theme=”dark” data-type=”VERTICAL” data-vanity=”USERNAME_HERE” data-version=”v1″><a class=”badge-base__link LI-simple-link” href=”https://ca.linkedin.com/in/USERNAME_HERE?trk=profile-badge”>USERNAME_HERE</a></div> </div> ); } export default App; USERNAME_HERE is just a filler to fill with linkedin username. The issue is that my react app ..

Read more

I try to use the Linkedin API for several things including posting content on my business page. All products have been added to the Linkedin Developper platform and I use the following scopes: rw_organization_admin w_organization_social r_liteprofile r_organization_social w_member_social Here is my code: const params = { author: "urn:li:organization:" + company_id, lifecycleState: "PUBLISHED", specificContent: { "com.linkedin.ugc.ShareContent": ..

Read more

I try to use the Linkedin API for several things including posting content on my business page. All products have been added to the Linkedin Developper platform and I use the following scopes: rw_organization_admin w_organization_social r_liteprofile r_organization_social w_member_social Here is my code: const params = { content: { contentEntities: [ { entityLocation: "https://www.example.com/content.html", thumbnails: [ ..

Read more

I have a website that has some articles that I’d like to share on LinkedIn. I’m using the following code to make that happen: HTML on the article page: <a href="" target="_blank" class="js_linkedin-share">Share on LinkedIn</a> JavaScript that loads on the article page: let shareUrl = window.location.href; document.querySelector(‘.js_linkedin-share’).setAttribute(‘href’, ‘https://www.linkedin.com/sharing/share-offsite/?url=’+shareUrl); When the page loads, it should set ..

Read more