Facebook OAuth: custom callback_uri parameters

前端 未结 6 1907
广开言路
广开言路 2020-12-23 14:34

I\'d like to have a dynamic redirect URL for my Facebook OAuth2 integration. For example, if my redirect URL is this in my Facebook app:

http://www.mysite.com/oau         


        
6条回答
  •  青春惊慌失措
    2020-12-23 15:08

    You're best off specifying a unique callback for each oAuth provider, /oauth/facebook, /oauth/twitter etc.

    If you really want the same file to respond to all oAuth requests, either include it in the individual files or setup a path that will call the same file on your server using .htaccess redirects or something similar: /oauth/* > oauth_callback.ext

提交回复
热议问题