linkedin

Unable to access Linkedin profile with valid oauth2 access token

徘徊边缘 提交于 2019-12-05 20:02:43
I am having the same problem that is described in LinkedIn OAuth2: "Unable to verify access token" ; however, the solution described there does not fix my problem. I am able to successfully request an access token; however, when I make a request with it (using either the Authorization header or the oauth2_access_token query param), I get a 401 failure: $ curl "https://api.linkedin.com/v1/people/~?format=json&oath2_access_token=############" { "errorCode": 0, "message": "Unable to verify access token", "requestId": "Z9ZJ1MOUM0", "status": 401, "timestamp": 1440096560396 } $curl --header

Permissions to access Linked In privatePlayableStreams - 500 or 403 error

浪尽此生 提交于 2019-12-05 18:49:58
I have a next issue using Linked In API V2: curl -X GET --header 'Accet: application/json' --header 'Authorization: Bearer <my token>' 'https://api.linkedin.com/v2/adCreativesV2/62119114?projection=(variables(data(com.linkedin.ads.TextAdCreativeVariables(vectorImage~:privatePlayableStreams))))' | json_pp { "variables" : { "data" : { "com.linkedin.ads.TextAdCreativeVariables" : { "vectorImage" : "urn:li:digitalmediaAsset:C560EAQFjbUgC1TlCcw", "vectorImage!" : { "message" : "URN Resolution failed for unknown reasons.: com.linkedin.restligateway.exceptions.GatewayAccessException: Not enough

Linkedin V1 update-comments-as-company api throws 500 error code

前提是你 提交于 2019-12-05 18:35:44
We are using Linkedin v1 api update-comments-as-company endpoint to post comments on behalf of company page managed by the user. Nowadays this endpoint throws 500 error response while trying to add comment. Example request: curl -X POST -H "Authorization: Bearer xxxx" -H "Content-Type: application/json" -H "x-li-format: json" 'https://api.linkedin.com/v1/companies/12345/updates/key=UPDATE-c12345-640455667889990765/update-comments-as-company' --data '{"comment": "Posting as a company!"}' Response: { "errorCode": 0, "message": "Internal service error", "requestId": "OBVNKWRJDC", "status": 500,

How to Login with linkedin using javascript and display profile information

时光怂恿深爱的人放手 提交于 2019-12-05 17:49:41
I want to integrate Linkedin login using javascript. I searched for that and get relevant results. But lot of search results says that below code: <script type="in/Login"> </script> is used to create sign-in button. But i want to use my own custom button and call a function on "onClick" event in my HTML. Help in correct direction. My code : function linkedinLogin(){ console.log('linkedinLogin called'); var src="http://platform.linkedin.com/in.js" api_key: 'XXXXXXXXXXXXXXXX' authorize: true onLoad: OnLinkedInFrameworkLoad } function OnLinkedInFrameworkLoad() { IN.Event.on(IN, "auth",

How to parse a Mash from LinkedIn to create a Ruby object

五迷三道 提交于 2019-12-05 16:19:20
I used LinkedIn gem by pengwynn to get authentication from LinkedIn. Everything works fine, and I get a Mash in a callback that looks like this: #<LinkedIn::Mash all=[#<LinkedIn::Mash company=#<LinkedIn::Mash id=1422 industry="Banking" name="Company" size="10,001+ employees" ticker="ABC" type="Public Company"> id=2851554 is_current=true start_date=#<LinkedIn::Mash month=12 year=2008> summary="" title="Boss">] total=1> How can I parse it to something similar to Rails params in order to create a new object from it? Thank you. When you receive list of connections of any sort from LinkedIn, you

How to Get Access Token Using LinkedIn API JavaScript SDK

喜欢而已 提交于 2019-12-05 15:28:28
I am trying to get LinkedIn Access Token after login. Login is working fine with JavaScript SDK and I'm able to receive "oauth_token" and member_id . I need access_token to verify the email address (if it is not forged on the way). Below is my script: <script> function LoginWithLinkedIn() { IN.User.authorize(afterAuthorization); } function afterAuthorization(response){ debugger if(IN.User.isAuthorized()==true){ getProfileData(); } } function onSuccess(data) { console.log(data); } function onError(error) { console.log(error); } function getProfileData(r) { IN.API.Profile("me") .fields("id

Can Oauth2 Access Token be shared by client?

↘锁芯ラ 提交于 2019-12-05 13:24:00
I am new to OAUTH and trying out understanding the spec. So as per the spec protocol flow , I understand that Client A, can get Authorization code and then Access Token for a protected resource. Now if Access Token has been obtained, Services e.g Linked in expects the Access token to be part of URL Query, See their interface document . So now if Client A has shared access token with Client B, or e.g anyone intercepts the request, and gets the access token, then he too can start accessing all details that Client A can access. Is this understanding correct? If yes, then how can we protect such

How to retrieve the list of positions including all the fields using the LinkedIn javascript sdk?

空扰寡人 提交于 2019-12-05 12:53:11
I want to get the id, title, summary, start-date, end-date, is-current and company name for each position that a LinkedIn member has entered on its profile. I tested a query on the REST Console and I got the desired result. The query is " https://api.linkedin.com/v1/people/~/positions:(id,title,summary,start-date,end-date,is-current,company)?format=json ". The problem is that when I try to do the same thing using the LinkedIn javascript SDK I'm not getting the whole list of fields for each position. I'm getting the complete list of positions, but not all the fields for each position. This is

.Net Core Identity 2 Provider login Cancel leads to unhandled exception

倾然丶 夕夏残阳落幕 提交于 2019-12-05 11:40:44
I've added LinkedIn as a provider. I have implemented the login and register with LinkedIn without any issue. In the use case where the user CANCELS from within the provider Pages (either linkedIn login or cancels the authorization of the app) the identity middleware seems to throw an unhandled exception: An unhandled exception occurred while processing the request. Exception: user_cancelled_login;Description=The user cancelled LinkedIn login Unknown location Exception: An error was encountered while handling the remote login. Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler

LinkedIn mobile access token for making server side REST API calls

妖精的绣舞 提交于 2019-12-05 11:28:01
As per LinkedIn documentation I see that we cannot use the mobile access token to make REST API calls which LinkedIn provides. I have a use case, where, in my mobile app, I use LinkedIn's mobile SDK for logging in to linkedin and I need to fetch certain data like logged in user's connections etc on the backend. This should ideally be done on backend instead of mobile because I do not want too many calls going from app to our servers. Is there any work around to do this? Using the Mobile SDK, there's really no way around this at the moment. If you require back-end call capability, your best bet