From 43634d1979307fe5734cdddb17864aa99502990a Mon Sep 17 00:00:00 2001 From: Dwight Watson Date: Wed, 2 Oct 2019 18:51:25 +1000 Subject: [PATCH] Rename configuration options --- README.md | 4 ++-- src/FacebookPosterServiceProvider.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 735abfc..1f4dad9 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,8 @@ You will need to [create](https://developers.facebook.com/apps) a Facebook app i ```php ... 'facebook_poster' => [ - 'app_id' => getenv('FACEBOOK_APP_ID'), - 'app_secret' => getenv('FACEBOOK_APP_SECRET'), + 'client_id' => getenv('FACEBOOK_APP_ID'), + 'client_secret' => getenv('FACEBOOK_APP_SECRET'), 'access_token' => getenv('FACEBOOK_ACCESS_TOKEN'), ], ... diff --git a/src/FacebookPosterServiceProvider.php b/src/FacebookPosterServiceProvider.php index 4af4292..d5066ec 100644 --- a/src/FacebookPosterServiceProvider.php +++ b/src/FacebookPosterServiceProvider.php @@ -16,8 +16,8 @@ public function register() ->needs(Facebook::class) ->give(function ($app) { return new Facebook([ - 'app_id' => $app['config']['services.facebook_poster.app_id'], - 'app_secret' => $app['config']['services.facebook_poster.app_secret'], + 'app_id' => $app['config']['services.facebook_poster.client_id'], + 'app_secret' => $app['config']['services.facebook_poster.client_secret'], 'default_access_token' => $app['config']['services.facebook_poster.access_token'], ]); });