0
我正在使用this sample code來調用我的人Instagram饋送。一切都在第二次運作,但在最初的通話中我得到一個Invalid argument supplied for foreach()
。想不通爲什麼它只能在部分時間...爲foreach提供的參數無效()Instagram API
的PHP代碼:
<?php
foreach ($response['data'] as $data) {
$link = $data['link'];
$id = $data['id'];
$caption = $data['caption']['text'];
$author = $data['caption']['from']['username'];
$thumbnail = $data['images']['low_resolution']['url'];
$username = $data['user']['username'];
$fullname = $data['user']['full_name'];
?>
'var_dump($ response);' – zerkms
似乎有某事。與$迴應行動['數據'] – Tobias
@zerkms請你詳細說明嗎? – itsclarke