How to do oAuth within Visualforce and be redirected back to the visual force page
Mention the redirect URL as your visuslforce page only instead of oauth success url.The VF Url will have access token that you can get using apexpages.currentpage.parameters.get('refresh token')