前提・実現したいこと
wordpressを利用しています。
APIを使ってinstagramをホームページ上に表示させていましたが、
エラーの表示が出ました。
Warning: file_get_contents(): php_network_getaddresses:
getaddrinfo failed: Temporary failure in name resolution…
file_get_contents(●●): failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
phpに記述している下記の行がエラーとなっているようなのですが、、、
$json = file_get_contents・・・・
foreach($obj->data as $data・・・
何か原因がわかりましたら教えていただければ幸いです。
<追記>
エラーについて
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name
Warning: file_get_contents(): failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name
Warning: Invalid argument supplied for foreach() in
<試したこと>
Instagram Developer Documentationにログインして
アクセストークンを確認
securityのDisable implicit OAuthのチェックを外してみましたが
変わらずでした。
あなたの回答
tips
プレビュー