Skip to content

Commit c67a903

Browse files
authored
Update README.md
1 parent 484232b commit c67a903

1 file changed

Lines changed: 6 additions & 107 deletions

File tree

README.md

Lines changed: 6 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,11 @@
77
[![Total Downloads](https://poser.pugx.org/pgrimaud/instagram-user-feed/downloads)](https://packagist.org/packages/pgrimaud/instagram-user-feed)
88
[![Monthly Downloads](https://poser.pugx.org/pgrimaud/instagram-user-feed/d/monthly)](https://packagist.org/packages/pgrimaud/instagram-user-feed)
99

10+
## Version ^4.0 is now shutdown ([see](https://support.pixelunion.net/hc/en-us/articles/360041460554-Important-notice-Instagram-feed-removal)). Please upgrade to ^5.0.
11+
1012
## Information
1113
This library offers 2 packages to retrieve your or any Instagram feed without OAuth for PHP.
1214

13-
## Version ^4.0
14-
This version can retrieve **YOUR** Instagram feed using an **access token**.
15-
16-
- [Installation](#installation-of-version-40)
17-
- [Usage](#usage-of-version-40)
18-
- [Paginate](#paginate-for-version-40)
19-
2015
## Version ^5.0
2116
This version can retrieve **ANY** Instagram feed using **web scrapping**.
2217

@@ -26,7 +21,9 @@ This version can retrieve **ANY** Instagram feed using **web scrapping**.
2621

2722
## Changelog
2823

29-
**2018-04-20 : Release of version ^5.0 in parallel of version ^4.0 which still working. (Kudos for [@jannejava](https://github.com/jannejava) and [@cookieguru](https://github.com/cookieguru)**)
24+
**2020-02-23 : Version ^4.0 is now shutdown ([see](https://support.pixelunion.net/hc/en-us/articles/360041460554-Important-notice-Instagram-feed-removal)). Please upgrade to ^5.0.**
25+
26+
~~2018-04-20 : Release of version ^5.0 in parallel of version ^4.0 which still working. (Kudos for [@jannejava](https://github.com/jannejava) and [@cookieguru](https://github.com/cookieguru)**)~~
3027

3128
~~2018-04-17 : Now fetching data with screen scraping (thanks [@cookieguru](https://github.com/cookieguru)), please upgrade to version ^5.0~~
3229

@@ -36,108 +33,10 @@ This version can retrieve **ANY** Instagram feed using **web scrapping**.
3633

3734
~~2018-03-16 : Due to changes of the Instagram API, you must upgrade to version ^2.1~~
3835

39-
# Installation of version ^4.0
40-
41-
```
42-
composer require pgrimaud/instagram-user-feed "^4.0"
43-
```
44-
45-
1. Visit [http://instagram.pixelunion.net/](http://instagram.pixelunion.net/) and create an access token
46-
47-
2. The first part of the access token is your User Id
48-
49-
```
50-
$api = new \Instagram\Api();
51-
52-
$api->setAccessToken('1234578.abcabc.abcabcabcabcabcabcabcabcabcabc');
53-
$api->setUserId(1234578);
54-
```
55-
56-
**Seems like you can only access your own media until 2020.**
57-
58-
## Usage of version ^4.0
59-
60-
```php
61-
$api = new \Instagram\Api();
62-
63-
$feed = $api->getFeed('pgrimaud');
64-
65-
print_r($feed);
66-
67-
```
68-
69-
```php
70-
Instagram\Hydrator\Feed Object
71-
(
72-
[id] => 184263228
73-
[userName] => pgrimaud
74-
[fullName] => Pierre G
75-
[biography] => Gladiator retired - ESGI 14
76-
[followers] => 342
77-
[following] => 114
78-
[profilePicture] => https://scontent.cdninstagram.com/vp/f49bc1ac9af43314d3354b4c4a987c6d/5B5BB12E/t51.2885-19/10483606_1498368640396196_604136733_a.jpg
79-
[externalUrl] => https://p.ier.re/
80-
[mediaCount] => 33
81-
[hasNextPage] => 1
82-
[maxId] => 1230468487398454311_184263228
83-
[medias] => Array
84-
(
85-
[0] => Instagram\Hydrator\Media Object
86-
(
87-
[id] => 1758133053345287778_184263228
88-
[typeName] => image
89-
[height] => 640
90-
[width] => 640
91-
[thumbnailSrc] => https://scontent.cdninstagram.com/vp/e64c51de7f5401651670fd0bbdfd9837/5B69AF2B/t51.2885-15/s150x150/e35/30604700_183885172242354_7971196573931536384_n.jpg
92-
[link] => https://www.instagram.com/p/BhmJLJwhM5i/
93-
[date] => DateTime Object
94-
(
95-
[date] => 2018-04-15 17:23:33.000000
96-
[timezone_type] => 3
97-
[timezone] => Europe/Paris
98-
)
99-
100-
[displaySrc] => https://scontent.cdninstagram.com/vp/dd39e08d3c740e764c61bc694d36f5a7/5B643B2F/t51.2885-15/s640x640/sh0.08/e35/30604700_183885172242354_7971196573931536384_n.jpg
101-
[caption] =>
102-
[comments] => 2
103-
[likes] => 14
104-
)
105-
...
106-
)
107-
)
108-
```
109-
110-
## Paginate for version ^4.0
111-
If you want to use paginate, retrieve `maxId` from previous call and add it to your next call.
112-
113-
```php
114-
// First call :
115-
116-
$api = new Api();
117-
$api->setUserId(184263228);
118-
$api->setAccessToken('1234578.abcabc.abcabcabcabcabcabcabcabcabcabc');
119-
120-
$feed = $api->getFeed();
121-
122-
$endCursor = $feed->getMaxId();
123-
124-
// Second call :
125-
126-
$api = new Api();
127-
$api->setUserId(184263228);
128-
$api->setAccessToken('1234578.abcabc.abcabcabcabcabcabcabcabcabcabc');
129-
$api->setMaxId('1230468487398454311_184263228');
130-
131-
$feed = $api->getFeed();
132-
133-
// And etc...
134-
```
135-
___
136-
13736
# Installation of version ^5.0
13837

13938
```
140-
composer require pgrimaud/instagram-user-feed "^5.0"
39+
composer require pgrimaud/instagram-user-feed
14140
```
14241

14342
## Usage of version ^5.0

0 commit comments

Comments
 (0)