API permisions for LinkedIn - linkedin

I'm struggling with Linked API.
I'm still getting "not enough permissions" when trying to retrive data from https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/ads-reporting?view=li-lms-2022-08&tabs=http
When calling for "leadGenerationMailContactInfoShares" or "oneClickLeads".
I have these permisions on Auth:
"
r_organization_social
r_1st_connections_size
r_organization_admin
r_ads_reporting
r_emailaddress
r_liteprofile
r_basicprofile
r_ads
rw_ads
w_member_social
w_organization_social
"
I tried to go for r_basicprofile and r_liteprofile but neither of that solve it for me.
Anybody knows what and how to request permisons so I can get these data?
Sorry if this is frequent question but I couldn't find anything that would solve it for me.
Thanks

Related

permissions to access linkedin's users profile

I have tried to access #linkedIn's users profile using the links-https://api.linkedin.com/v2/me?projection=(id,firstName,lastName) and https://api.linkedin.com/v2/me both but got the error-
{
"serviceErrorCode": 100,
"message": "Not enough permissions to access: GET /me",
"status": 403
}
I have client id, secret id and able to generate authorization code and access token using the Apis for that I am following this doc- https://learn.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-flow?view=li-lms-2022-08&tabs=HTTPS for step4, I am unable to access #linkedIn's users profile.
If need permissions, please #linkedIn community give me the same and for further contact, DM me on this email-id - vkg6614#gmail.com . I want to access the users profile for https://upskilltalent.com/ this company
for better understanding please go through this doc--
https://learn.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-flow?view=li-lms-2022-08&tabs=HTTPS
Thanks in advance
You probably need to look at https://learn.microsoft.com/en-us/linkedin/shared/integrations/people/profile-api?context=linkedin%2Fmarketing%2Fcontext&view=li-lms-2022-08
I would assume you're not requesting enough scopes when requesting the access token from LinkedIn.
You probably need r_basicprofile or r_liteprofile

LinkedIn API likes/shares/comments

We have been trying to pull in like/comments for LinkedInposts that have been made by our application but it seems we are getting an error message. I am posting this on behalf of my developer. We have these products enabled.
Share on LinkedIn, Sign in with LinkedIn and Marketing Developer Platform
We have these permissions:
r_organization_social
r_1st_connections_size
r_ads_reporting
r_emailaddress
rw_organization_admin
r_liteprofile
r_basicprofile
r_ads
rw_ads
w_member_social
In trying to determine what might be happening my developer seems to think we must have r_member_social but seems to be a restricted permission per the LI faq.
"How do I get access to r_member_social?
r_member_social is a closed permission, and we are not accepting access requests this time due to resource constraints. Learn more about available Marketing APIs and permissions."
But in looking into this my thinking is that we should be able to get any likes/comments from posts that WE have made on behalf of an authenticated user via r_organization_social.
You don't have enough permissions to access the post as r_member_social is needed for it, and currently it is restricted by linkedIn.
The r_organization_social permission is used to Retrieve the organization's posts, comments, reactions, and other engagement data of the authenticated user.
It is something, that suppose your authenticated member has a page on LinkedIn and then This permission is used to get the data of the post that are from the organization page. It does not allow you to the data of the simple post that you post as the user.
More detail about the permissions can be found here.
r_member_social is needed for it, and currently, it is restricted by LinkedIn. There are just providing w_member_social access. You can check that as well by selecting your app from My Apps, navigating to the Products tab, going to the Marketing Developer Platform product, and clicking on view endpoints. then you will be able to see the permissions available.
Alternatively, you can explore this marketing documentation more.

Unable to query to search company in linkedinAPI V2

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)

Unable to get r_emailaddress from https://api.linkedin.com/v2/me

I have used,
<OAuthConfig oAuthScope="r_liteprofile r_emailaddress" providerId="LINKED_IN" userProfileUrl="https://api.linkedin.com/v2/me"/>
and using OAuth2 for this but I'm unable retrieve email with this. Is there possibility to get both email & liteprofile from single accesstoken request?
My app is having permissions with
r_liteprofile
r_emailaddress
w_member_social
Can anyone help me with this?
Thanks in advance.
THIS IS THE RESPONSE I'm getting,
THIS IS JSON OBJECT:
{"lastName":{"localized":{"en_US":"global"},"preferredLocale":{"country":"US","language":"en"}},"firstName":{"localized":{"en_US":"Gifting"},"preferredLocale":{"country":"US","language":"en"}},"id":"_Ru_P5gptv"}
net.sf.json.JSONException: JSONObject["emailAddress"] not found.
The email address is available via the /emailAddress API, not the /me API.
You will need to make an additional GET request to https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~))

LinkedIn API OAuth2 Authentication with scope permission failure

I want to retrieve a accesstoken for the linkedInAPI to post and retrieve shares.For that I am authentication the linkedIn API auth by specifing the scope
r_member_social w_member_social r_basicprofile
but the authentication URL is failing with error
Scope "r_member_social" is not authorized for your
application.
Why is my app does not authorize r_member_social, what should I do to authorize it ?
Utilizing r_member_social requires special approval from LinkedIn.
To gain access to r_member_social, you first need to apply to and be approved for the LinkedIn Marketing Developer Program.
Then, submit your request for r_member_social via the LinkedIn Developer Partner Support Site. They'll know how to help get you approved. However, they may not approve you - the docs state that r_member_social "is granted to select developers only."
In V2 w_member_social replaced with w_share
Plese check the document
https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/migration-faq?context=linkedin/consumer/context

Resources