LinkedIn Share Post V2 API INTERNAL SERVER ERROR - linkedin

When trying to share media to a users profile we receive a 500 internal server error with no further explanation.
This is a very basic call based on the V2 doc: https://learn.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/share-api?context=linkedin/compliance/context#post-shares
{"message":"INTERNAL SERVER ERROR","status":500}

Refer the below endpoint to share media to linkedin.
https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/share-on-linkedin?context=linkedin/marketing/context#creating-a-share-on-linkedin
There is three process to post images. Videos upload endpoint not yet released.

Related

How to get access to LinkedIn Live Video API?

We are building streaming application and need access to LinkedIn Live API.
According to the docs we need to request one of the scopes w_organization_live or w_member_live but they are not authorized and there does not seem to be a way to add those to the linkedin app: https://share.getcloudapp.com/L1uWLO0e
Any ideas how to make it work? Should we talk to someone?

Linkedin API (v2) 5xx Errors to get organizationalEntityShareStatistics

I'm facing problems with my client because I can't get the share's statistics for his organization.
Since December 2021 the API is returning Internal Server Error for many request in the organizationalEntityShareStatistics endpoint.
API analytics
The request works for other organizations.
I have tried reaching Linkedin through their support pages but they have told me to post it here on stack overflow; In this private support request I show the app tokens used: https://linkedin.zendesk.com/hc/en-us/requests/26241?page=1 or here: https://www.linkedin.com/help/linkedin/cases/39424961
LinkedIn answered me that I should filter some posts, according to their "lifecycleState" field, which for some cases make the request fail, they should only be PUBLISHED or PUBLISHED_EDITED

How to post content in Linkedin using share Api from netsuite

While using Share Api i got response as follows
{
"serviceErrorCode": 100,
"message": "Not enough permissions to access: POST /shares",
"status": 403
}
this is due to the fact that for the linkedin V2 API you need to become an linkedin partner. this can take up to a month befor you get a response.
Partnering with LinkedIn provides you with additional API functionality & data access, increased call limits & dedicated support. Read more about our various Partner Programs and use cases and see if one is a match for your app. Applications are only accepted when we feel that they're providing value to members, developers and LinkedIn.
for more information see this link :
https://developer.linkedin.com/partner-programs

LinkedIn New API - Can't Get r_network Permission

I inherited a program that was written with the old LinkedIn API, and I'm trying to migrate it to the new API. When I try to get the r_basicprofile permission, my oauth token works. However, when I try r_network or rw_nus, I get a response
invalid scope -- your application has not been authorized for
r_network.
Yet, when I go to www.linkedin.com/developer/apps/xxxx/auth, the boxes for r_network and rw_nus are checked.
I.e., A request to
https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=xxxxxx&scope=r_basicprofile&state=yyyy&redirect_uri=http%3A%2F%2Fkalatublog.com%2Fwp-content%2Fmu-plugins%2Fimb-en%2Fhelpers%2Fsocial-connect%2Fapi%2Ffinalize.php%3Fapi%3Dlinkedin%26ch%zzzzz
works, but a request to
https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=xxxxxx&scope=r_network&state=yyyy&redirect_uri=http%3A%2F%2Fkalatublog.com%2Fwp-content%2Fmu-plugins%2Fimb-en%2Fhelpers%2Fsocial-connect%2Fapi%2Ffinalize.php%3Fapi%3Dlinkedin%26ch%zzzzz
gives that error. What am I doing wrong?
As of May 15,
After the grace period expires, several REST API endpoints will no longer be available for general use. The following endpoints are the only ones that will remain available for use:
Profile API — /v1/people/~ `
Share API — /v1/people/~/shares
Companies API — /v1/companies/{id}
If your application is currently using any other API services (e.g. Connections, Groups, People Search, Invitation, Job Search, etc.) you will have to apply to become a member of a relevant Partner Program that provides the necessary API access to continue to leverage any of the endpoints that are not listed above.
It looks like linkedin no longer wants to share anything with their API. Creating a new app indicates that the only possible options are r_basicprofile, r_emailaddress, rw_company_admin, and w_share:
TLDR: they have locked down the API and restricted the usage to an extremely limited set of access points.
I did some more digging. The linkedin website is misleading. On my app linkedin page, it says that I'm approved for rw_nus and r_network, but on this page
https://developer.linkedin.com/support/developer-program-transition
it says those are no longer approved.
So the app home page in linkedin incorrectly said I had those permissions.
Heres the link if you want to Apply for Linkedin
https://help.linkedin.com/app/ask/path/api-dvr

Gracenote API request not returning link to iTunes / Amazon

As part of the reponse to my webAPI queries, I currently receive an external link to the DEEZER service, but I'm looking to retrieve links to iTunes, Amazon.
Is there any additional setup needed to get these links to Amazon and iTunes returned? There appears to be no documentation of the process, and the rep at Gracenote has confirmed this is a feature (amazon and itunes links).
Thanks!
Answering my own question - Gracenote developer accounts don't get access to iTunes and other vendors unless you have a paid account. You can arrange a sample account to get time restricted access to these IDs, but ultimately you must have a paid account to develop against.

Resources