Facebook callback redirects back to the login form with the user logged in

budda - December 11, 2008 - 01:52
Project:Facebook - Auth
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

After allowing my application on facebook, the callback redirects back to
http://mysite.com/user/login - and thus "access denied" because the user is now authentcated.

Visiting http://mysite.com/facebook also redirects and has the same problem, the user gets logged in and then dumped to access denied.

Surely the user shoud be logged in and redirected to /user ?

#1

halkeye - December 13, 2008 - 21:00
Status:active» postponed (maintainer needs more info)

Can you give me better steps for reproducing this?
Can you tell me what your callback url looks like?
What url you clicked the facbook button from?
etc

#2

budda - December 14, 2008 - 17:34

i'm clicking the facebook image button on the /user/login page which shows the login form (if user is not already logged in)

The facebook image has the 'destination' url variable set to point back to the current page. This of course is bad, because upon return to the Drupal site the user will get logged in and the redirected to the login form - giving the access denied message.

The callback url on the facebook app points to http://mysite.com/facebook - which has to work in order to get the user back to the site and greeted with an access denied message :)

 
 

Drupal is a registered trademark of Dries Buytaert.