I don\'t know if this question has been asked, because searching finds results mostly about moving the libraries installation directory.
I have a globally installed comp
Run:
cd /home/mysites/google.com
Then run:
composer require facebook/graph-sdk
Above steps will open up the directory named (google.com) and install facebook Graph SDK there.