SammyK / LaravelFacebookSdk

Fully unit tested Facebook SDK v5 integration for Laravel & Lumen
MIT License
693 stars 201 forks source link

Lumen IOC Dependancy Problem #135

Open linkthrow opened 7 years ago

linkthrow commented 7 years ago

The constructor for the LaravelFacebookSdk required $url and $config which cannot be resolved

Unresolvable dependency resolving [Parameter #2 [ <required> array $config ]] in class SammyK\\LaravelFacebookSdk\\LaravelFacebookSdk

linkthrow commented 7 years ago

I have fixed it and made a pull request for this https://github.com/SammyK/LaravelFacebookSdk/pull/136

SammyK commented 7 years ago

Hey @linkthrow! I'm not sure why you're getting this error as the dependencies are resolved in the server provider. Are you using the package's service provider?

SammyK commented 7 years ago

Correction: I see what you're saying now. Let me dig into this a bit more.

SammyK commented 7 years ago

Ok - so I still don't know how you're getting this message if you're using the package's service provider. Did you add the provider to your bootstrap/app.php file?