Skip to content

Commit

Permalink
Merge pull request artdarek#12 from mohitmamoria/master
Browse files Browse the repository at this point in the history
fixed array brackets to work with php 5.3
  • Loading branch information
artdarek committed Sep 18, 2013
2 parents 85b1574 + ad5038b commit 86ab073
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ Add your Facebook credentials to ``app/config/packages/artdarek/oauth-4-laravel/

```php
'Facebook' => array(
'client_id' => 'Your Facebook client ID',
'client_secret' => 'Your Facebook Client Secret',
'scope' => ['email','read_friendlists','user_online_presence'],
),
'client_id' => 'Your Facebook client ID',
'client_secret' => 'Your Facebook Client Secret',
'scope' => array('email','read_friendlists','user_online_presence'),
),
```
In your Controller use the following code:

Expand Down Expand Up @@ -202,17 +202,17 @@ Add your Google credentials to ``app/config/packages/artdarek/oauth-4-laravel/co

```php
'Google' => array(
'client_id' => 'Your Google client ID',
'client_secret' => 'Your Google Client Secret',
'scope' => ['userinfo_email', 'userinfo_profile'],
),
'client_id' => 'Your Google client ID',
'client_secret' => 'Your Google Client Secret',
'scope' => array('userinfo_email', 'userinfo_profile'),
),
```
In your Controller use the following code:

```php
public function loginWithGoogle()
{
// get data from input
// get data from input
$code = Input::get( 'code' );

// get google service
Expand Down

0 comments on commit 86ab073

Please sign in to comment.