arrays - Try to get feeds from Instagram with PHP

I need some help from you !
I'm using this URL to get feed informations from Instagram https://www.instagram.com/instagram/?__a=1
On a browser everything works fine ;))
But when using the code below from different web sites (hosting in Canada or France) I have a NULL response from var_dump !!! Instagram returns NULL
$response = file_get_contents('https://www.instagram.com/instagram/?__a=1');
$result = json_decode($response, true);
var_dump($result);
If I use the same code with phpfiddle.org everything works fine even on my localhost !
Can someone try to run this script from a website (if he has one) to find out if the answer is also NULL ?
If not, is there an explanation that it doesn't work on my web sites and with me ?
By the way I already post this question but without a response to solve this problem ;((
Thanks for your help...
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: a non-numeric value encountered in
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.