I fixed the issue. It wasn't a matter of code, but rather of keeping your linkedin settings up to date while developing.
Sir Lee Fu, of LinkedIn, answered to the problem I was having:
Could you please try to remove the application from the member's applications and try again? (its under settings)
This did the trick!