Closed leesmith closed 10 years ago
I commented out the twitter gem and I'm now seeing the true error...400 response.
However, my issue looks an awful lot like this one: https://github.com/emorikawa/linkedin-oauth2/issues/11
I've created a pull request to fix the json.
However, I'm still not sure that the twitter gem should be reporting errors. Maybe https://github.com/emorikawa/linkedin-oauth2/pull/15 will correct this?
I'm trying to post some content as a company share to a LinkedIn company page. After getting authenticated through OAuth2 and obtaining the access token, I can successfully query for things via the api. When I try to write to the company page however, I get a
no implicit conversion of Symbol into Integer
error.My offending line:
I've tried posting to LinkedIn's test company page (as stated in the red box at the top of this page https://developer.linkedin.com/creating-company-shares) as well as the company page I'm an admin for.
What's interesting is that the twitter gem is actually throwing the error (I'm using the twitter gem in this project as well):
I've examined the api object that gets built and I notice that Twitter has registered itself as a handler to the Faraday::RackBuilder object to raise errors...or something:
As far as being able to post some content to a LinkedIn company page, what am I doing wrong? Thanks for any help!