Use wp_remote_get to get JSON instagram feed from public profile
I'm using the curl php library to get the instagram json feed from a given public profile. I want to use wp_remote_get()
because on the host I'm using for this project, I don't have the ability to use curl to request the json feed, I've noticed that my actual plugin script will work well on localhost, on netsons and aruba but not on tophost.
I don't know if the function included in wordpress will do the same thing so my question is, will wp_remote_get()
return to me the json feed if I provide the instagram url? See the example above:
$feed = wp_remote_get('https://www.instagram.com/profile/?__a=1');
Topic wp-remote-get curl php Wordpress
Category Web