webtechnick/CakePHP-Facebook-Plugin — pull request #58 by gapple (2012-03-14 17:25:14+00:00)
Title: Api wrapper component import path and method calls

Ran across a couple issues trying to use the api wrapper component:

__include path is not correct__

__method calls don't pass parameters through correctly__
`__call($method, $params)` receives all parameters in a numerically indexed array, and simply passing them through with `$self::Facebook->$method($params)` results in the Facebook SDK method receiving the wrapped parameters instead of the parameters being correctly assigned.

e.g.

$this->Api->FB->method(
array(
'key' => 'value',
),
'secondParam'
);

results in the SDK receiving the single parameter

array(
[0] => array(
'key' => 'value',
),
[1] => 'secondParam'
)

I tested __call(), but not __callstatic()