Open mohmdlj opened 4 months ago
Write down all errors. I can look at your error in about 3-4 days. I don't have a free day.
PHP Warning: Trying to access array offset on value of type null in in lines: curl_setopt($ch, CURLOPT_PROXY, $proxyIP); curl_setopt($ch, CURLOPT_PROXYPORT, $proxyPort); curl_setopt($ch, CURLOPT_PROXYUSERPWD, "$proxyUsername:$proxyPassword");
and file_get_contents('')
in line :
$step1 = file_get_contents($url);
curl_setopt($ch, CURLOPT_URL, 'https://www.instagram.com/api/graphql');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, $getHeader);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'av=0&__d=www&__user=0&__a=1&__req=2&__hs=19750.HYP%3Ainstagram_web_pkg.2.1..0.0&dpr=1&__ccg=UNKNOWN&__rev=1011069798&__s=ux76qb%3Apubtm3%3Ac9o7p1&__hsi=7329082171152797718&__dyn=7xeUjG1mxu1syUbFp60DU98nwgU29zEdEc8co2qwJw5ux609vCwjE1xoswIwuo2awlU-cw5Mx62G3i1ywOwv89k2C1Fwc60AEC7U2czXwae4UaEW2G1NwwwNwKwHw8Xxm16wUwtEvw4JwJCwLyES1Twoob82ZwrUdUbGwmk1xwmo6O1FwlE6PhA6bxy4UjK5V8&__csr=gtneJ9lGF4HlRX-VHjmiWppWF4qDKKh7G8KUCgwDy8gDzVoO4emqFeLrW8EKFEhJ5zGmiiiUFpRum8zeQXx3y9pnCAgyiGHG6pbyoiwCKEsxx004LRG440qh00Nmw1jC0S8364i0bvw1aGt2p61rxK0a3CDgCl0c-0hW4Zw9y00FPE&__comet_req=7&lsd=AVprzzL2A3o&jazoest=2974&__spin_r=1011069798&__spin_b=trunk&__spin_t=1706434919&fb_api_caller_class=RelayModern&fb_api_req_friendly_name=PolarisPostActionLoadPostQueryQuery&variables=%7B%22shortcode%22%3A%22'.$id.'%22%2C%22fetch_comment_count%22%3A40%2C%22fetch_related_profile_media_count%22%3A3%2C%22parent_comment_count%22%3A24%2C%22child_comment_count%22%3A3%2C%22fetch_like_count%22%3A10%2C%22fetch_tagged_user_count%22%3Anull%2C%22fetch_preview_comment_count%22%3A2%2C%22has_threaded_comments%22%3Atrue%2C%22hoisted_comment_id%22%3Anull%2C%22hoisted_reply_id%22%3Anull%7D&server_timestamps=true&doc_id=10015901848480474');
$response = curl_exec($ch);
delete this lane if you dont have any proxies curl_setopt($ch, CURLOPT_PROXY, $proxyIP); curl_setopt($ch, CURLOPT_PROXYPORT, $proxyPort); curl_setopt($ch, CURLOPT_PROXYUSERPWD, "$proxyUsername:$proxyPassword");
delete this lane if you dont have any proxies curl_setopt($ch, CURLOPT_PROXY, $proxyIP); curl_setopt($ch, CURLOPT_PROXYPORT, $proxyPort); curl_setopt($ch, CURLOPT_PROXYUSERPWD, "$proxyUsername:$proxyPassword");
Deleted, still getting the same error
How can you get the same error if you deleted those lines? Are the codes hallucinating?
How can you get the same error if you deleted those lines? Are the codes hallucinating?
Talking about the other lines:
and file_get_contents('')
in line :
$step1 = file_get_contents($url);
curl_setopt($ch, CURLOPT_URL, 'https://www.instagram.com/api/graphql');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, $getHeader);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'av=0&__d=www&__user=0&__a=1&__req=2&__hs=19750.HYP%3Ainstagram_web_pkg.2.1..0.0&dpr=1&__ccg=UNKNOWN&__rev=1011069798&__s=ux76qb%3Apubtm3%3Ac9o7p1&__hsi=7329082171152797718&__dyn=7xeUjG1mxu1syUbFp60DU98nwgU29zEdEc8co2qwJw5ux609vCwjE1xoswIwuo2awlU-cw5Mx62G3i1ywOwv89k2C1Fwc60AEC7U2czXwae4UaEW2G1NwwwNwKwHw8Xxm16wUwtEvw4JwJCwLyES1Twoob82ZwrUdUbGwmk1xwmo6O1FwlE6PhA6bxy4UjK5V8&__csr=gtneJ9lGF4HlRX-VHjmiWppWF4qDKKh7G8KUCgwDy8gDzVoO4emqFeLrW8EKFEhJ5zGmiiiUFpRum8zeQXx3y9pnCAgyiGHG6pbyoiwCKEsxx004LRG440qh00Nmw1jC0S8364i0bvw1aGt2p61rxK0a3CDgCl0c-0hW4Zw9y00FPE&__comet_req=7&lsd=AVprzzL2A3o&jazoest=2974&__spin_r=1011069798&__spin_b=trunk&__spin_t=1706434919&fb_api_caller_class=RelayModern&fb_api_req_friendly_name=PolarisPostActionLoadPostQueryQuery&variables=%7B%22shortcode%22%3A%22'.$id.'%22%2C%22fetch_comment_count%22%3A40%2C%22fetch_related_profile_media_count%22%3A3%2C%22parent_comment_count%22%3A24%2C%22child_comment_count%22%3A3%2C%22fetch_like_count%22%3A10%2C%22fetch_tagged_user_count%22%3Anull%2C%22fetch_preview_comment_count%22%3A2%2C%22has_threaded_comments%22%3Atrue%2C%22hoisted_comment_id%22%3Anull%2C%22hoisted_reply_id%22%3Anull%7D&server_timestamps=true&doc_id=10015901848480474');
$response = curl_exec($ch);
If you are testing in Turkey, Russia, China, Iran or North Korea, you will not receive a response because Instagram access is blocked in your country.
You also need to pay attention to your cookie configuration. Apart from these, the error shows that the video's downloadable link is not available in the result from graphql. This must be due to either incorrect parameters or incorrect cookie information.
If you are testing in Turkey, Russia, China, Iran or North Korea, you will not receive a response because Instagram access is blocked in your country.
You also need to pay attention to your cookie configuration. Apart from these, the error shows that the video's downloadable link is not available in the result from graphql. This must be due to either incorrect parameters or incorrect cookie information.
Im using north american shared server hosting. May you please provide a cookies example tutorial so i can try?. Many thanks
error Trying to access array offset on null