How do I load a library using xautoload and libraries?
It was calling the wrong composer.json. Facebook api has it's own.

The fix is

$adapter-&gt;composerJson('vendor/facebook/graph-sdk/composer.json');