I know this is already late, but for those who are looking for how to do this, you need to add it to your __construct before you call Parent __construct.
So you would do something like this:
function __construct(){ if($thisIsTrue){ $this->components[] = 'Facebook.Connect' } parent::__construct(); }
You can do this in your individual controllers or in app_controller so that each controller selects it.
The only problem I ran into was that it was so hard to get variables for the if () operator so early. In my example, I only need the component if I were on the admin page, and instead of checking the parameters of $ this-> params, I had to check the URL from $ _SERVER.
I found this solution here, but he said that you need to do this in app_controller, which is not so: Loading the conditional component in CakePHP
source share