Thursday, October 22, 2009

FB Connect and cakePHP

When building a website using cakePHP and FB Connect it is important to take note of the cakePHP routing.  If you have done some customizing in your cakephp routes.php file, it may cause some problems when you try to use the FB Connect login-button.

To be safe, turn off all routing for cakePHP when it accesses the xd_receiver.htm file.

/** 
* turn off cakephp routing for facebook connect xd_receiver
*/
Router::connect('/xd_receiver.htm', null);

No comments: