Is there a way to pull an instagram feed with PHP without logging in? -
it seems solution no longer works -
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