Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julles/laravel-instagram
Laravel 5 Instagram Packages
https://github.com/julles/laravel-instagram
indonesia instagram laravel laravel-5-instagram laravel-5-package laravel-instagram laravel5
Last synced: 3 months ago
JSON representation
Laravel 5 Instagram Packages
- Host: GitHub
- URL: https://github.com/julles/laravel-instagram
- Owner: julles
- Created: 2016-01-15T18:26:01.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-11T19:51:39.000Z (about 8 years ago)
- Last Synced: 2024-09-28T19:03:24.942Z (4 months ago)
- Topics: indonesia, instagram, laravel, laravel-5-instagram, laravel-5-package, laravel-instagram, laravel5
- Language: PHP
- Size: 22.5 KB
- Stars: 24
- Watchers: 6
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Laravel 5 Instagram Packages
[![Total Downloads](https://poser.pugx.org/muhamadrezaar/instagram/d/total.svg)](https://packagist.org/packages/muhamadrezaar/instagram)
[![Latest Stable Version](https://poser.pugx.org/muhamadrezaar/instagram/v/stable.svg)](https://packagist.org/packages/muhamadrezaar/instagram/v/stable.svg)
[![License](https://poser.pugx.org/muhamadrezaar/instagram/license.svg)](https://packagist.org/packages/muhamadrezaar/instagram)Package Instagram untuk Laravel 5
### Installasi
Tambahkan Package pada composer.json
```sh
composer require muhamadrezaar/instagram
```
setelah package terdownload , register provider dan facade nyaProvider :
```sh
Oblagio\Instagram\InstagramServiceProvider::class,
```
Facade :
```sh
'IG' => Oblagio\Instagram\InstagramFacade::class,
```Publish config
```sh
php artisan vendor:publish
```### Konfigurasi
Buka file config/InstagramConfig.php
masukan user id dan access token instagram anda
contoh :
```sh
'user-id-kamu',
'accessToken' => 'access-token-kamu',
'clientId' => 'client-id-kamu',
'clientSecret' => 'client-secrets-kamu',
'redirectUri' => 'redirect-uri-kamu',
];```
### Cara penggunaaan
Menampilkan Gambar low resolusi
```sh";
}?>
```
Contoh Output Menampilkan gambar low resolution di browser![alt tag](https://s17.postimg.org/4velafbjz/instagram.png)
Menampilkan Gambar standar resolusi
```sh
";
}?>
```
Menampilkan Informasi User
```sh
```
Menampilkan Data Followers
```sh
```
Menampilkan Data Following
```sh
```
### Menggunakan Login Authenticate
contoh membuat link authentikasi (tombol login ke instagram)
```sh
Login";
?>
```
tombol diatas akan meredirect ke halaman login instagram , setelah si user login maka instagram akan meridirect ke halaman yang anda declare di InstagramConfig.php -> ('redirectUri' => 'bla bla bla').contoh redirectUri : localhost:8000/instagram
selain meredirect ke halaman url anda tadi , instagram memberikan code di url anda , ini url nya localhost:8000/instagram?code=1234567.
nah di url ini lah kita bisa mendapatkan informasi si user yang login tadi , dengan
cara meggunakan script berikut :```sh
```
semua informasi user yang login bisa di dapatkan :).
## Ada Pertanyaan ?
email aja ke : [email protected]
## License
https://reza.mit-license.org/
**ENJOY !!!**