passportjs custom callback and tracking of events

I am creating a RESTful oauth login services on nodejs based on passportjs.

Want to trace events in passportjs, can't find how do I save oauth code before sending it to the oauth server and then after successful login.

The motive is to create a layer between facebook/linkedin/twitter and the .net based application. Allowing application to give callbacks in their url.

So flow will be, an application requesting me this

http://example.com/auth/facebook?hash=someSecretCodeBetween&callback=someUrl

this above url takes user to facebook and after logging in it takes to predefined callback url in Strategy and then that takes user to the callback that was originally passed in the above url.

how is this possible?