PHPackages                             nf/social - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. nf/social

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

nf/social
=========

Social login provider

2.0.7(8y ago)072MITPHPPHP &gt;=5.6

Since Dec 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/nf-theme/social)[ Packagist](https://packagist.org/packages/nf/social)[ RSS](/packages/nf-social/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (12)Used By (0)

Social login provider
=====================

[](#social-login-provider)

> It's an extension for our theme

#### Installation

[](#installation)

##### Step 1: Install Through Composer

[](#step-1-install-through-composer)

```
composer require nf/social

```

##### Step 2: Add the Service Provider

[](#step-2-add-the-service-provider)

> Open `config/app.php` and register the required service provider.

```
  'providers'  => [
        // .... Others providers
        \NightFury\Social\SocialServiceProvider::class,
    ],
```

##### Step 3: Create a callback url

[](#step-3-create-a-callback-url)

Create a new page and use shortcode `[nf_social_oauth_callback]`, then use url of the page as callback url with one more query param `?provider={your_provider}`

For example we have a page with url is `https://{your_domain}/oauth` then we use

- `https://{your_domain}/oauth?provider=facebook` for Facebook app
- `https://{your_domain}/oauth?provider=twitter` for Twitter app
- `https://{your_domain}/oauth?provider=google` for Google app

##### Step 4: Update your config file `config/app.php` with CLIENT\_ID and SECRET\_KEY

[](#step-4-update-your-config-file-configappphp-with-client_id-and-secret_key)

```
