linkedin

Get linkedin Access Token with JavaScript SDK

坚强是说给别人听的谎言 提交于 2019-12-04 23:02:08
I am working on that application allow user to connect to linkedin (using javascript). I want to store access token that I got from IN.ENV.auth.oauth_token because I will use it to post to user's timeline. But when I use this access token to post to Linkedin, I got "Invalid access token" error. Did I use correct access token? How's the correct way to get Access token? Here's my code: $("#linkedin-connect").on('click',function(e){ e.preventDefault(); IN.UI.Authorize().place(); IN.Event.on(IN, "auth", OnLinkedInAuth); return false; }); function OnLinkedInAuth() { console.debug("oauth token:" +

How does LinkedIn know or keep track of where I embedded its widget?

陌路散爱 提交于 2019-12-04 22:26:04
When you try to integrate with LinkedIn's Apply Now button, you first sign up for an API key. The form asks you to enter the Javascript Domain API, which is the Fully-qualified domain name of all pages that will call the JavaScript API with this key. In return, it produces an API key and some HTML code for you which you can copy n paste to your web page and get started. This is the code their wizard produced: <script src="http://platform.linkedin.com/in.js" type="text/javascript"> api_key: 7a4ghb12agvda4552da </script> <script type="IN/Apply" data-companyname="Asd" data-jobtitle="Software

Firebase Auth (with Custom Token, for Linkedin) returns a user with no email and no data (only uid)

冷暖自知 提交于 2019-12-04 20:54:07
I'm trying to login with Linkedin and Firebase. I generate on my server the custom token, I have my private key, I use RS256 and this is my payload: "iss" : service_account_email "sub" : service_account_email "aud", "https://identitytoolkit.googleapis.com/google.identity.identitytoolkit.v1.IdentityToolkit" "iat", Date().timeIntervalSince1970 "exp", Date().timeIntervalSince1970.advanced(by: 3600) "uid", String.randomString(length:28) I create the token, send it back to the app and from this I do: Auth.auth().signIn(withCustomToken: token!, completion: { (user, error) in I receive no error and a

How could I use python-request to grab a linkedin page?

╄→尐↘猪︶ㄣ 提交于 2019-12-04 20:50:27
I use below code try to grab a linked in page,but it seems this method couldn't let me login,just show me the unauthorized home page. #/usr/bin/env python3 import requests from bs4 import BeautifulSoup payload = { 'session-key': 'my account', 'session-password': 'my password' } URL = 'https://www.linkedin.com/uas/login' s = requests.session() s.post(URL, data=payload) r = s.get('http://www.linkedin.com/nhome') soup = BeautifulSoup(r.text) print(soup) ` This is much more complicated than what you've got so far. You will need to do something like: Load https://www.linkedin.com/uas/login Parse

Linkedin v2 api: Not enough permissions to access: GET /countriesV2

蹲街弑〆低调 提交于 2019-12-04 20:08:38
While fetching organization follower statistics using LinkedIn v2 API I used country projection to get country, region, industries, functions details also. But it throws error for countries alone, other details are included as expected. URN Resolution failed for unknown reasons.: com.linkedin.restligateway.exceptions.GatewayAccessException: Not enough permissions to access: GET /countriesV2 My query is curl "https://api.linkedin.com/v2/organizationalEntityFollowerStatistics?q=organizationalEntity&organizationalEntity=urn:li:organization:12345&projection=(elements*(*,followerCountsByRegion*(*

OpenGraph meta for facebook, linkedin and twitter

…衆ロ難τιáo~ 提交于 2019-12-04 18:56:30
I'm trying to make sure that when my website is shared the correct meta information is displayed. I thought I had it working but I'm experiencing a few issues on different social websites, as follows: Twitter pulls in the text but doesn't display the specified image. LinkedIn displays text but seems to use the wrong image so it's stretched. Facebook doesn't display anything. If I post the URL, that's all that's displayed as a hyperlink. Originally I just had the meta name="twitter: stuff but have since added the meta property="og: above it as I was told that was needed for LinkedIn. This is

No large images in shares posted using LinkedIn API

自古美人都是妖i 提交于 2019-12-04 18:55:58
During last couple of weeks any shares made using LinkedIn sharing API don't display large images, though we provide all required information for this, including image URL. The same happens when we use REST Console . Below you can see a sample request and how the share looks like. { "comment": "How Triggre achieves its simplicity", "content": { "title": "Triggre / Blog / Design Philosophy - Part 3", "description": "In the previous two posts about our design philosophy you could read how we decided to build Triggre and why we chose simplicity as the core of our desi...", "submitted-url": "https

How do I get email address field using the LinkedIn Javascript API?

≡放荡痞女 提交于 2019-12-04 18:50:57
问题 I'm using the LinkedIn Javascript API to sign in users to my application, however the API is not returning the email address even though I'm requiring permission for that specific field. I'm including the API script as follows: <script type="text/javascript" src="//platform.linkedin.com/in.js"> api_key: API_KEY scope: r_fullprofile r_emailaddress </script> then I'm including the Log In button in the markup: <script type="in/Login" data-onAuth="onLinkedInAuth"> and finally I have a function to

LinkedIn SDK init bad resultCode

你离开我真会死。 提交于 2019-12-04 18:50:19
I'm following this tutorial and everything seems fine until the LinkedIn app goes back to my Activity (in onResultActivity). I get a resultCode of 2, which I can't figure out what it means. This resultCode is also not handled within the LinkedIn sdk code! Has anyone come across this? Or had it run successfully? Result code "2" indicated an error is occurring. You should be able to see more information about the problem from the errorInfo and errorDesc objects returned. Try this way I got my solution with this process of creating SHA try { PackageInfo info = context.getPackageManager()

How to share on LinkedIn using REST-API v2?

心已入冬 提交于 2019-12-04 18:36:02
I am having difficulty getting a share on linkedin. I am trying to post a LinkedIn share via linkedin api v2 and everytime I make the post request I get a request timed out (status 504) answer from the server. Here is my code : $url = https://api.linkedin.com/v2/ugcPosts?oauth2_access_token=".$row[0]['accesstoken']; $fields = '{ "author": "urn:li:person:XXX", "lifecycleState": "PUBLISHED", "specificContent": { "com.linkedin.ugc.ShareContent": { "shareCommentary": { "text": "Hello World! This is my first Share on LinkedIn!" }, "shareMediaCategory": "NONE" } }, "visibility": { "com.linkedin.ugc