我在Instagram尝试友谊/创建/功能,但我有一些错误.
帐户/登录功能正在运行.
友谊/创建错误:"请更新您的Instagram应用程序以继续关注."
require_once("instagram.php");
$username = '';
$password = '';
$agent = 'Instagram 6.21.2 Android (19/4.4.2; 480dpi; 1152x1920; Meizu; MX4; mx4; mt6595; en_US)';
$guid = GenerateGuid();
$device_id = "android-".$guid;
$data ='{"device_id":"'.$device_id.'","guid":"'.$guid.'","username":"'.$username.'","password":"'.$password.'","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}';
$sig = GenerateSignature($data);
$data = 'signed_body='.$sig.'.'.urlencode($data).'&ig_sig_key_version=6';
$login = SendRequest('accounts/login/', true, $data, $agent, false);
print_r($login);
/**********
Login working successfully! No problem...
***********/
/*********
But error area is here.
**********/
$device_id = "android-".$guid;
$data = '{"device_id":"'.$device_id.'","guid":"'.$guid.'","device_timestamp":"'.time().'","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}';
$sig = GenerateSignature($data);
$new_data = 'signed_body='.$sig.'.'.urlencode($data).'&ig_sig_key_version=6';
$follow = SendRequest('friendships/create/29180689', true, $new_data, $agent, true); …Run Code Online (Sandbox Code Playgroud)