Twitter SSO Login help

So i have implemented SSO logins for my app. Both Facebook and Google work just fine except for twitter. The issue is basically that i have unique urls on some pages that Twitter callback url is not working due to my urls having additional parameters at the end. Is there anyway i can get this to work? Also, i use popup login. My last resort would be to just create another login page specifically for these pages that have unique urls.