Solved minor issue with 'next page' not being passed to Facebook/Twitter login.