Site icon Ctrl Alt Dad

LinkedIn javascript API

I promised a couple posts back that I would write about how I’m doing the linked-in authorization and posting. This isn’t as easy as facebook, and there is really no good gem for it. The one that we did find (http://rubygems.org/gems/linkedin) doesn’t do posting – it’s read only.

Since I already use javascript for facebook oauth, I figured I should just follow the same path for linkedin. If you have a better method, please let me know!

So here we go:

https://gist.github.com/1006759

https://gist.github.com/1006789

https://gist.github.com/1006810

https://gist.github.com/1006914

https://gist.github.com/1006916

A note about linkedin & URLs

Linkedin will autolink https urls that don’t have a self-signed certificate. That’s a bitch for your dev & QA environment which likely doesn’t meet that criteria. So, test with the prod url against your dummy linkedin profiles to get the full results. 

Also, if you use shareArticle (http://developer.linkedin.com/docs/DOC-1075) to adhoc post to walls, it will crash unless the url you reference meet those conditions above.

 

 

Good luck!

 

Exit mobile version