Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Instagram strategy for Opauth

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 InstagramStrategy.php
Octocat-spinner-32 README.md
Octocat-spinner-32 composer.json
README.md

Opauth-Instagram

Opauth strategy for Instagram authentication.

Implemented based on http://instagr.am/developer/authentication/

Opauth is a multi-provider authentication framework for PHP.

Getting started

  1. Install Opauth-Instagram:

    cd path_to_opauth/Strategy
    git clone git://github.com/muhdazrain/opauth-instagram.git Instagram
    
  2. Create a Instagram application at http://instagr.am/developer/clients/register/

    • Make sure that redirect URI is set to actual OAuth 2.0 callback URL, usually http://path_to_opauth/instagram/int_callback
  3. Configure Opauth-Instagram strategy.

  4. Direct user to http://path_to_opauth/instagram to authenticate

Strategy configuration

Required parameters:

<?php
'Instagram' => array(
  'client_id' => 'YOUR CLIENT ID',
  'client_secret' => 'YOUR CLIENT SECRET'
)

Optional parameters: scope, response_type
For scope, separate each scopes with a space(' ') and not a plus sign ('+'). Eg. likes comments.

References

License

Opauth-Instagram is MIT Licensed
Copyright © 2012 Muhammad Azrain Kamaruddin (@muhdazrain)

Something went wrong with that request. Please try again.