diff --git a/README.md b/README.md index 0b11684..70af8b5 100644 --- a/README.md +++ b/README.md @@ -46,8 +46,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'], ]); });