user1780370
user1780370

Reputation: 851

LinkedIn Authentication error while comment post on Linkedin from Rails Application

Helllo,

I am working on Rails application where have to authenticate with LinkedIn and comments post on linked. I got below error:

LinkedIn::Errors::AccessDeniedError in AccountsController#share_message_linkedin

(403): Access to posting shares denied

I authenticate user and login successfully and fetch linkedin user image and other things but when tried to comments post on behalf of user then got error of access denied.

Where is i am wrong or any mistake. Any one have a experience or any trick here to solve it.

Thanks in advance.

Upvotes: 1

Views: 306

Answers (1)

Kyle Burkett
Kyle Burkett

Reputation: 1443

First make sure you have w_share checked under the Application Permissions.

Checked Correct Permissions

You'll then be able to post shares to the users wall. I have code that demonstrates what can be done.

https://github.com/kaburkett/LinkedIn-Advanced-Share

demo: http://www.datopstech.com/linkedin-share-tool/

Do keep in mind LinkedIn changed availability of several API endpoints on Feb 2015. If you are referencing old information, keep this in mind:

https://developer.linkedin.com/support/developer-program-transition

Upvotes: 1

Related Questions