I've successfully gotten my access token to the LinkedIn api! However, I can only seem to make this request call:
GET https://api.linkedin.com/v2/me/
When I try to look up another public member's information using:
GET https://api.linkedin.com/v2/people/(id:{person ID})
I get the 403 error saying: serviceErrorCode":100,"message":"Not enough permissions to access: GET- vanityName /people","status":403.
This happens when I try to look up the member using the vanity name as well. Can someone explain why this is happening even though I've gotten the access token?
It's what the error message says: LinkedIn hasn't given your application permission to fetch other people's profiles. You can only fetch your own. Those APIs exist, but aren't given to everyone.
Related
My App has SignIn With linkedin and Share on Linkedin both permission assigned.
While retrieving the token, I have used the scope w_member_social as well.
But as per the Linked API documentation: while, I try to use the query to search organization by keywords, I am getting error as -
"serviceErrorCode":100,"message":"Not enough permissions to access: GET-search /companySearch","status":403
Can you tell me what extra permission is needed here ?
I think you need the rw_organization_admin permission. Actually you have a write-only permission and maybe this is the problem.
Moreover the LinkedIn API states that "The Company Search endpoint is restricted. This permission is granted to selected developers only."(as reported here)
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
I'm running into this error when trying to hit any of the Organizations Lookup API endpoints:
HTTPError: 403 Client Error: Forbidden for url: https://api.linkedin.com/v2/organizationalEntityAcls?q=roleAssignee
I also run into this error for the Organization Search API. Which is strange because my "Usage and Limits" console says that these requests were successful. I've tried emailing LMSdeveloperteam#linkedin.com about this error but have gotten no response back.
Here is the permissions my app currently has: permissions
And here is my "Usage and Limits" screen: requests console
There are a number of v2 endpoints that I am able to access successfully and we already have API access so I'm drawing a blank on what else to do other than continue to email LMSdeveloperteam#linkedin.com and post here.
Does anyone have any ideas? LinkedIn support could you look into this please?
can you verify that you have an ADMINISTRATOR account in atleast one organization ?
Depending on your application's permissions, some Organization API
requests may require the authenticated member have a specific
organization role type, such as ADMINISTRATOR. You may lookup access
control information either by member or organizational entity.
could you also try if you have another api call from organization to look if you have access to the organization api ?
https://api.linkedin.com/v2/organizations/{organization ID}
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?
Getting likes from facebook using following command
x <- getLikes(XXX, token=token)
XXX is the user ID of facebook account of person and token is created by Graph API Explorer.
Using this command, I find like activity of user and user's friend account. Out of 10 friends, I got the following Error for some users
likes <- getLikes(XXX, token=token)
Error in getLikes(XXX, token = token) :
User not found, or token is not authorized.
I create new token also but still I get same Error.
Please tell me what should I do to resolve this.
While authorizing a user are you enabling extended permissions as true?
If not, then you have to enable extended permissions as follows
fbOAuth(app_id="Your_app_id",app_secret="your_app_secret",extended_permissions=TRUE)
Once you do this the getLikes function should work properly for all users
It isn't working for you because facebook has stopped the service. Unless the user that you are requesting details from authorizes your application, you wont be getting the data