I have implemented LinkedIn developer API in my organization, for page fetch and share posts on the LinkedIn page. Firstly I generate access token and then access LinkedIn page fetch API :
https://api.linkedin.com/v2/organizationAcls?q=roleAssignee&role=ADMINISTRATOR&projection=(elements*(*,roleAssignee~(localizedFirstName, localizedLastName), organization~(localizedName)))
Since last week I am facing an error when I generate a new access token from my account and try to fetch page LinkedIn it randomly gives me an Unauthorized exception. When I check the token from LinkedIn token introspection API it's providing me status as revoked. Why is this happening? I can't find a reason anywhere.
#linkedin
Related
The access request form was filled in to request access to LinkedIn Advertising API for TataSteelEurope. However, the access was denied(reason: not a proper use case) and I am not able to further fill in the form.
We need access to LinkedIn Advertising API for fetching LinkedIn feeds of our company page(TataSteelEurope) and displaying the same in our website(www.tatasteeleurope.com).
Can anyone please help me on this ?
The access request form was filled in to request access to LinkedIn Advertising API for TataSteelEurope. However, the access was denied(reason: not a proper use case) and I am not able to further fill in the form.
We need access to LinkedIn Advertising API for fetching LinkedIn feeds of our company page(TataSteelEurope) and displaying the same in our website(www.tatasteeleurope.com).
I'm trying to fetch linkedin share photo_mention details using GET /v2/ugcPosts - LinkedIn API. I'm using it for fetch single photo_mention details by Share Id. 3-legged oauth2 token im using is valid and having access to below permissions:
r_basicprofile, r_emailaddress, r_liteprofile, r_member_social, r_organization_social, rw_organization_admin, w_member_social, w_organization_social
For photo mention posts shared from organization page im able to fetch ugcpost details using above api call, but for photo mention posts shared from personal page I'm getting below error:
{
"message": "com.linkedin.content.common.ResponseException: com.linkedin.restli.server.RestLiServiceException [HTTP Status:403]: com.linkedin.content.common.ResponseException: Not enough permissions to access urn:li:share:xxxxxx",
"status": 403
}
Please guide me in this to solve this error.
Postman screenshot of failed api call
LinkedIn Developer API used
LinkedIn Support seems to be terminated - facing the same issue when trying to access the 'https://api.linkedin.com/v2/shares/' endpoint...
Update: Well, just found out that the permission 'r_member_social' in this case is RESTRICTED. So I guess you just can retrieve share infos for posts on ORGA pages, not private profiles... -> Restricted Retrieve posts, comments, and likes on behalf of an authenticated member. This is a private permission. Source: https://learn.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/share-api?tabs=http
How to get access to LinkedIn API Client using Client Credential Flow (2-legged OAuth) when my usecase does not fit in one of the LinkedIn partners scope? How/where should I apply to get access? Or does it mean only the 4 usecases in this link can use server-side-only access to LinkedIn (without explicit user authentication)?
Currently, when I try to authenticate and get an access token, I have the following error:
{
"error": "access_denied",
"error_description": "This application is not allowed to create application tokens"
}
My usecase is to save time in our internal process following an interview we had with entrepreneurs. We generate a report and, instead of manually picking their profile information from LinkedIn, we would like to pre-fill the report using the LinkedIn API.
The LinkedIn support redirects to either Stack Overflow for API support or the link above to request access (which is for specific usecases only)
Resources:
- Use of OAUth 2.0 Client Credentials Flow
My end goal is to register my API to receive notifications of leads generated by LinkedIn for my business's Company Page. The docs here say I need to register at https://api.linkedin.com/v2/leadNotificationUrls using the r_ads_ge_automation permission. I'm trying to acquire this type of access token by using a web browser to hit https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=client_id_for_my_application&redirect_uri=https://my.company.net/api/oauth/linkedin&state=Testing12345&scope=r_ads_leadgen_automation, then logging in as a user that is an admin for the respective company page, then acquiring authentication code, and finally requesting an access token.
The problem is that when I try to hit https://www.linkedin.com/oauth/v2/authorization (with the query params above), I get an error response stating "r_ads_leadgen is not authorized for your application". I can't find any kind of application configuration that is supposed to give this permission to my application.
Can anyone help? Thank you
Permissions are offered to select Partners only. Have you applied to a Partner Program https://business.linkedin.com/marketing-solutions/marketing-partners/become-a-partner?
Equinix uses http://api.linkedin.com/v1/companies/ for getting information about any company and we publish this info in our Equinix Marketplace website for that Company's storefront.
We are using Spring Social Network API to connect to LinkedIn API. It was working before and it started giving below error now:
###[WARN] 2015-07-02 00:17:17:839 [org.springframework.web.client.RestTemplate] - GET request for "https://api.linkedin.com/v1/companies/universal-name=tata-communication:(id,name,universal-name,email-domains,company-type,ticker,website-url,industry,status,logo-url,square-logo-url,blog-rss-url,twitter-id,employee-count-range,specialties,locations,description,stock-exchange,founded-year,end-year,num-followers)?" resulted in 403 (Forbidden); invoking error handler ###[ERROR] 2015-07-02 00:17:18:037 [com.equinix.gse.gsd.servlet.SocialNetworkFlowHandlerServlet] - SocialNetworkServiceException
Is there anyway to get any company information via API for any user?
Starting from May 12, 2015, Linkedin has limited the open APIs.
Access to Companies API requires that you apply for and are granted access to this information from LinkedIn.
As per LinkedIn,
All calls to Companies API endpoints will require the authenticated
user to be flagged as an administrator of the LinkedIn Company Page
that is the target of the API call. You become the administrator of a
page when you create it. If the page already exists, you will have to
contact the existing administrator to grant admin access to other
LinkedIn members.
Your API call will return a 403 Forbidden error if you do not have the
appropriate admin permission to interact with the target company.
So from now onwards, you will have to become an administrator for that company page to access the Companies API.
(This LinkedIn page might be helpful to know more about getting the appropriate admin permissions.)