From 6ed39d17d306ec6627d608b82f3ba88d11ea2e05 Mon Sep 17 00:00:00 2001 From: George Spake Date: Fri, 11 Nov 2016 14:09:29 -0600 Subject: [PATCH] Fix typo in readme --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0af3a1b..04c4c3f 100755 --- a/README.md +++ b/README.md @@ -294,7 +294,12 @@ You can get a login URL just like you you do with the Facebook PHP SDK v5. Route::get('/facebook/login', function(SammyK\LaravelFacebookSdk\LaravelFacebookSdk $fb) { $login_link = $fb ->getRedirectLoginHelper() - ->getLoginUrl('https://exmaple.com/facebook/callback', ['email', 'user_events']); + ->getLoginUrl('https:// + + + + + aple.com/facebook/callback', ['email', 'user_events']); echo 'Log in with Facebook'; }); @@ -312,7 +317,7 @@ Alternatively you can pass the permissions and a custom callback URL to the wrap > **Note:** Since the list of permissions sometimes changes but the callback URL usually stays the same, the permissions array is the first argument in the `getLoginUrl()` wrapper method which is the reverse of the SDK's method `getRedirectLoginHelper()->getLoginUrl($url, $permissions)`. ```php -$login_link = $fb->getLoginUrl(['email', 'user_status'], 'https://exmaple.com/facebook/callback'); +$login_link = $fb->getLoginUrl(['email', 'user_status'], 'https://example.com/facebook/callback'); // Or, if you want to default to the callback URL set in the config $login_link = $fb->getLoginUrl(['email', 'user_status']); ```