artdarek / oauth-4-laravel

OAuth Service Provider for Laravel 4
683 stars 216 forks source link

FB OAUTH #28

Closed Ikhan closed 9 years ago

Ikhan commented 10 years ago

Why does is say "The parameter app_id is required" for FB OAuth. Am I missing something or please advice me.

Thanks.

artdarek commented 10 years ago

Did you provide your facebook app id ('client_id') in your config file?

Ikhan commented 10 years ago

yeah , everything is in place , when calling it returns "app_id is required" , I wonder any parameter should be passed in ..

petehouston commented 9 years ago

When you call OAuth::consumer('SERVICE'), you must match the exactly the key provided in the the oauth-4-laravel.php.

For example:

// controller
$fb = OAuth::consumer( 'Facebook' ); // It is Facebook (not facebook, or faceBook ...

// config
'consumer' => [ 'Facebook' => [] ]         // It is Facebook, should match either way.

It is case-sensitive.

Haseeb90 commented 9 years ago

I'm having the same problem ... and the case matches also ... what am i missing?

Haseeb90 commented 9 years ago

Sorry I was editing the wrong config file, my bad. It works fine now