AKKA-CakePHP-Facebook-Plugin icon indicating copy to clipboard operation
AKKA-CakePHP-Facebook-Plugin copied to clipboard

Integration tests are failing due to Facebook's session checker

Open ericadestoya opened this issue 8 years ago • 0 comments

Trying to run tests with this plugin installed will throw the exception: Session not active, could not store state. Occasionally it'll throw: Session not active, could not load state. Both of these exceptions are being thrown from Facebook's PHP SDK, which requires an active session when setting a FBRLH object.

In the component, the FBRLH object is set in beforeFilter(), meaning each test is going to throw Facebook's session exceptions. This can be solved by setting the FBRLH object in initialize() and then calling Facebook's disableSessionStatusCheck() if the app is being accessed via CLI.

ericadestoya avatar Jul 14 '17 16:07 ericadestoya