title: How to integrate Facebook PHP SDK with Laravel 5.4?
body: <p>I was searching for an easy way to integrate <a href="https://developers.facebook.com/docs/reference/php" rel="noreferrer">Facebook PHP SDK</a> with Laravel 5.4. Essentially, I wanted to make it available as a service within my Laravel app.  Of course there is <a href="https://github.com/SammyK/LaravelFacebookSdk" rel="noreferrer">SammyK/LaravelFacebookSdk</a> on github.  But for some reason I didn't want to use it. I felt the setup was adding another layer that I would have to understand, and work within the constraints.</p>
  
  <p>There is also Laravel's own <a href="https://github.com/laravel/socialite" rel="noreferrer">Socialite</a> package. But this is essentially for simple authentication only.  If I want to upload photos, comments, make batch requests, these are not possible.  Socialite does not use Facebook's PHP SDK as a dependency.  It uses Guzzle package to make direct API requests for authentication only. </p>
  
  <p>Since there is no simple SO answer to directly integrating Facebook SDK in least number of steps, I thought I'd write this.</p>