Is there a way to pull an instagram feed with PHP without logging in? -


it seems solution no longer works -

how user's instagram feed

the new api requires access token dynamically assigned after passing through login page. there way still pull feed programmatically through php without jumping through new oauth hoops? useful setting crontab automatically save new posts database.

yes can. don't need login or access_token latest 20 posts. need parse json content https://www.instagram.com/[username]/media/. replace [username] instagram user_name.

eg.

$instaresult = file_get_contents('https://www.instagram.com/'.$username.'/media/'); $insta = json_decode($instaresult); 

update: instagram has changed user media rss url. in order rss feed have use https://www.instagram.com/[username]/?__a=1


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo