OAuth with LinkedIn

Hi all,

I've been trying to work with Elgg's OAuth plugin with Elgg1.7 and the LinkedIn API. I am able to create a request token for a user and then have them authorize with LinkedIn. However when LinkedIn redirects to my app, the oauth_token and oauth_verifier are missing from the request and these are required when getting an Access token from LinkedIn.

I've written a small plugin to sit ontop of the OAuth plugin as advised in the documentation and I'm thinking that i've made a simple mistake when implementing it. Does anyone have any tips? I don't have much experience with Elgg plugin development but even still, the documentation is sparse to say the least...

For example the following line sounds important but "someplace" isn't very helpful. (from: http://docs.elgg.org/wiki/OAuth)

"You also need to keep a reference to this consumer someplace. I generally save the GUID on the plugin settings:

set_plugin_setting('oauthConsumer', $consumEnt->getGUID());

Any help would be greatly appreciated!