How to post pictures to instagram using API - php
Instagram are now banning accounts and removing the images based on this method. Please use with caution It seems that everyone who has answered this question with something along the lines of it can't be done is somewhat correct. Officially, you cannot post a photo to Instagram with their API. However, if you reverse engineer the API, you can. function SendRequest ( $url , $post , $post_data , $user_agent , $cookies ) { $ch = curl_init (); curl_setopt ( $ch , CURLOPT_URL , 'https://i.instagram.com/api/v1/' . $url ); curl_setopt ( $ch , CURLOPT_USERAGENT , $user_agent ); curl_setopt ( $ch , CURLOPT_RETURNTRANSFER , true ); curl_setopt ( $ch , CURLOPT_FOLLOWLOCATION , true ); if ( $post ) { curl_setopt ( $ch , CURLOPT_POST , true ); curl_setopt ( $ch , CURLOPT_POSTFIELDS , $post_data ); } if ( $cookies ) { curl_setopt ( $ch , CURLOPT_COOKIEFILE , 'cookies.txt' ); ...
He budy what u think this will ?????????
ReplyDelete