我是Instagram的新人,基於實時圖片更新。不明白的過程,任何人都可以啓發我如何在PHP中創建回調URL?從註冊客戶端的重定向uri需要鏈接到這個回調URL?下面的代碼是我如何做回調URLinstagram訂閱標籤上的步驟實時圖片更新
$checkin_url = "https://api.instagram.com/v1/subscriptions/";
//$instagram[] for client_id, client_secret, redirect_uri
$parameters = array(
'client_id' => $instagram['client_id'],
'client_secret' => $instagram['client_secret'],
'object' => 'tag',
'aspect' => 'media',
'object_id' => 'nofilter',
'callback_url' => $instagram['redirect_uri']
);
$curl = curl_init($checkin_url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $parameters);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($curl);
print($response);