Skip to content

Commit

Permalink
Add link to new documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
DraperStudio committed Mar 2, 2015
1 parent da31990 commit 30d5dff
Showing 1 changed file with 2 additions and 68 deletions.
70 changes: 2 additions & 68 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,72 +6,6 @@
[![Latest Unstable Version](https://img.shields.io/packagist/vpre/socialiteproviders/instagram.svg?style=flat-square)](https://packagist.org/packages/socialiteproviders/instagram)
[![License](https://img.shields.io/packagist/l/socialiteproviders/instagram.svg?style=flat-square)](https://packagist.org/packages/socialiteproviders/instagram)

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
## Contents
## Documentation

- [Installation](#installation)
- [1. Composer](#1-composer)
- [2. Service Provider](#2-service-provider)
- [3. Add the Event and Listeners](#3-add-the-event-and-listeners)
- [4. Services Array and .env](#4-services-array-and-env)
- [Add to `config/services.php`.](#add-to-configservicesphp)
- [Append provider values to your `.env` file](#append-provider-values-to-your-env-file)
- [Usage](#usage)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->


## Installation

### 1. Composer

```bash
// This assumes that you have composer installed globally
composer require socialiteproviders/instagram
```

### 2. Service Provider

* [See the docs on how to install the `SocialiteProviders` service provider.](https://github.com/SocialiteProviders/Manager#2-service-provider)


### 3. Add the Event and Listeners

* The listener that you will be adding is `'SocialiteProviders\Instagram\InstagramExtendSocialite@handle',`.

* [See the docs on how to install](https://github.com/SocialiteProviders/Manager#3-add-the-event-and-listeners)

### 4. Services Array and .env

#### Add to `config/services.php`.

```php
'instagram' => [
'client_id' => env('INSTAGRAM_KEY'),
'client_secret' => env('INSTAGRAM_SECRET'),
'redirect' => env('INSTAGRAM_REDIRECT_URI'),
],
```

#### Append provider values to your `.env` file

```php
// other values above
INSTAGRAM_KEY=yourkeyfortheservice
INSTAGRAM_SECRET=yoursecretfortheservice
INSTAGRAM_REDIRECT_URI=https://example.com/login
```

* [See the main docs for more information](https://github.com/SocialiteProviders/Manager#4-services-array-and-env)


## Usage

* You should now be able to use it like you would regularly use Socialite:

```php
return Socialite::with('instagram')->redirect();
```

* [See the main docs for more information](https://github.com/SocialiteProviders/Manager#usage)
Full documentation for using this provider can be found at [Instagram Documentation](http://socialiteproviders.github.io/providers/instagram/)

0 comments on commit 30d5dff

Please sign in to comment.