Is it possible to call or instantiate OmniAuth given that a authorization code for Facebook? Using authenticated referalls Facebook will append a ?code=ABC... to the URL.
Facebook documentation states that after receiving the authorization code one should then request the access token, however upon browsing through the omniauth-facebook gem this code already seems to exist (line 64).
My reason for wanting to integrate with OmniAuth is to avoid duplicating the code just to get authenticated referrals working. Thanks!
After looking into this two immediate options are available:
Redirect to the Facebook OAuth path.
Use the passsed in code to manually grab all the OAuth info from Facebook.
Here was some code that does some of the OAuth steps given a code.