Twits du Jour (Dec 23)
<1 min read
- I'm at @DollarTree (Lynnwood, WA) 4sq.com/JlBUey #
- I'm at Costco Food Court (Everett, WA) 4sq.com/1dyWrFO #
- I'm at @costco_online (Everett, WA) w/ 4 others 4sq.com/198P7y9 #
- I'm at @WinCoFoods (Everett, WA) 4sq.com/1bmSVfb #
Twits du Jour (Dec 22)
<1 min read
- I'm at Jimmy Mac's Roadhouse (Everett, WA) 4sq.com/1fzHViG #
- "Blueberry fritters are to die for." @ Tyler's Donuts: 4sq.com/1d29Rfq #foursquare #
- Emergency averted. Bad Christmas tree bulb has been replaced. #
- I'm at Tyler's Donuts (Everett, WA) 4sq.com/1fy5isY #
Twits du Jour (Dec 21)
<1 min read
- Sriracha: How a sauce won over the US thauv.in/1ccIEXe #
- I'm at Tobacco Joes (Everett, WA) 4sq.com/Jf44I2 #
- Hanes Hummus' Lawyer Pens Biting Rebuttal in Response to Hanes Brands' Cease and Desist Letter thauv.in/1ju4E5E #
- I'm at @DennysDiner (Everett, WA) 4sq.com/1jsipBO #
linkedin-j & Access to posting shares denied
<1 min read
This morning I noticed that my blog wasn't able to share on Linkedin anymore. I use the linkedin-j library to automatically share new blog posts on Linkedin. I rightfully assumed that my OAuth access token had expired. Upon resetting the token, I got the following error:
Access to posting shares denied
After a bit of research I was able to ascertain that the linkedin-j library was not requesting write access permission, which apparently is now required.
If was able to fix the problem by adding the following code right before the token request:
final Field field = LinkedInApiUrls.class.getField("LINKED_IN_OAUTH_REQUEST_TOKEN_URL");
field.setAccessible(true);
final Field modifiersField = java.lang.reflect.Field.class.getDeclaredField("modifiers");
modifiersField.setAccessible(true);
modifiersField.setInt(field, field.getModifiers() & ~Modifier.FINAL);
field.set(null, LinkedInApiUrls.LINKED_IN_OAUTH_REQUEST_TOKEN_URL + "?scope=rw_nus+r_basicprofile");
You gotta love the reflection API.
I can't really take the credit for the solution, I found it on stackoverflow.

