i'm building a small App for instagram and i need to post a like on any media
$uurl='https://api.instagram.com/v1/media/'.$media_id.'/likes';
$inst_stream2 = callInstagram($uurl);
$results2 = json_decode($inst_stream2, true);
function callInstagram($url)
{
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => 2
));
$result = curl_exec($ch);
curl_close($ch);
return $result;
}
but it doesn't post any like !!