Profil detayı eklendi, herkes profillerine girip bir gözatsın! Sevdiğiniz üyelerin cevaplarını takip edin! Tüm güncellemeler

instagram php api giriş sorunu

merhaba arkadaşlar Tayfun abinin çektiği instagram php api ders videoları ile sisteme giriş yapmak istiyorum. ama kod hata veriyor.


ben hostingin cron işlem menüsünden hergün belirli saatlerde dosyayı çalıştırıp benim hesabımdan paylaştığım son gönderiyi beğensin diye bi sistem yazdım ilk zamanlar sıkıntısız çalışıyordu.sonra


Missing csfrtokenlogin_required


hatasını verdi.


dosyaları localhost a indirdiğimde sorunsuz çalışıyo.

bunun nedeni ne olabilir


vendor/mgp25/instagram-php/src/data

klasörünün içini sildim yine düzelmedi


şimdiden teşekürler :D


debug çıktısı


POST: qe/sync/
DATA: ig_sig_key_version=4&signed_body=a692c7a503ab960b4071e38cdd80bd73298610a7aa74da95bccc6bd892e94be4.{"id":"26768fce-2e9b-429a-8c4f-0b5b6d2fef4d","experiments":"ig_android_reg_login_btn_active_state,ig_android_ci_opt_in_at_reg,ig_android_one_click_in_old_flow,ig_android_merge_fb_and_ci_friends_page,ig_android_non_fb_sso,ig_android_mandatory_full_name,ig_android_reg_enable_login_password_btn,ig_android_reg_phone_email_active_state,ig_android_analytics_data_loss,ig_fbns_blocked,ig_android_contact_point_triage,ig_android_reg_next_btn_active_state,ig_android_prefill_phone_number,ig_android_show_fb_social_context_in_nux,ig_android_one_tap_login_upsell,ig_fbns_push,ig_android_phoneid_sync_interval"}
← 200 1.71kB
RESPONSE: {"experiments": [{"name": "ig_android_reg_login_btn_active_state", "group": "control_20160830", "additional_params": [], "params": [{"name": "button_filled_fade_in", "value": "false"}, {"name": "button_filled", "value": "false"}, {"name": "outline_opaque", "value": "false"}], "expired": true}, {"name": "ig_android_ci_opt_in_at_reg", "group": "test_button_at_username_20161116", "additional_params": [], "params": [{"name": "opt_in_at_username_page", "value": "2"}], "expired": true}, {"name": "ig_android_non_fb_sso", "group": "launch_0616_2017", "additional_params": [], "params": [{"name": "support_non_fb_sso", "value": "true"}], "expired": true}, {"name": "ig_android_contact_point_triage", "group": "test_with_phone_first_20160322", "additional_params": [], "params": [{"name": "is_enabled", "value": "enabled"}, {"name": "phone_first", "value": "enabled"}], "expired": true}, {"name": "ig_android_reg_next_btn_active_state", "group": "filled_fade_in_20160830", "additional_params": [], "params": [{"name": "button_filled_fade_in", "value": "true"}, {"name": "button_filled", "value": "false"}, {"name": "outline_opaque", "value": "false"}], "expired": true}, {"name": "ig_android_prefill_phone_number", "group": "test_20160908", "additional_params": [], "params": [{"name": "prefill_phone", "value": "true"}], "expired": true}, {"name": "ig_android_show_fb_social_context_in_nux", "group": "control_20160713", "additional_params": [], "params": [{"name": "show_context", "value": "true"}], "expired": true}, {"name": "ig_android_phoneid_sync_interval", "group": "test_6_hours", "additional_params": [], "params": [{"name": "fully_synced", "value": "604800"}, {"name": "partially_synced", "value": "21600"}], "expired": true}], "status": "ok"}

GET: si/fetch_headers/?challenge_type=signup&guid=c0b7ea6727584d10b6911a2059c82a6b
← 200 16B
RESPONSE: {"status": "ok"}

Missing csfrtokenPOST: upload/photo/
→ 94.76kB
← 403 67B
RESPONSE: {"message": "login_required", "logout_reason": 2, "status": "fail"}

login_required



sayfa kodları


<?php
//	error_reporting(0);
	include "vendor/autoload.php";
	require "vendor/mgp25/instagram-php/src/Instagram.php";
	set_time_limit(0);
	$username = "***";
	$password = "***";
	$uid=***;
	$debug = false;
	$truncatedDebug = false;

	$ig = new \InstagramAPI\Instagram($debug, $truncatedDebug);

	
	try {
		$ig->login(true);
	} catch (\Exception $e) {
		echo $e->getMessage();
	}
	
?>
1

Cevaplar (1)

İşlem devam ediyor, lütfen bekleyin..
Yusuf Akgun
@yusufakgunn
1 ay önce

Hosting ip adresin engellenmiş olabilir debug true yapıp çıktıyıda paylaşır mısın birde vendor klasörünü silip yenile birde öyle dene

Cevapla @HasanERYILMAZ1 ay önce
@yusufakgunn, tabi hocam



vendor klasörünü sildim tekrar indirip yükledim sonuç aynı.



debug çıktısı bu ;



POST: qe/sync/
DATA: ig_sig_key_version=4&signed_body=a692c7a503ab960b4071e38cdd80bd73298610a7aa74da95bccc6bd892e94be4.{"id":"26768fce-2e9b-429a-8c4f-0b5b6d2fef4d","experiments":"ig_android_reg_login_btn_active_state,ig_android_ci_opt_in_at_reg,ig_android_one_click_in_old_flow,ig_android_merge_fb_and_ci_friends_page,ig_android_non_fb_sso,ig_android_mandatory_full_name,ig_android_reg_enable_login_password_btn,ig_android_reg_phone_email_active_state,ig_android_analytics_data_loss,ig_fbns_blocked,ig_android_contact_point_triage,ig_android_reg_next_btn_active_state,ig_android_prefill_phone_number,ig_android_show_fb_social_context_in_nux,ig_android_one_tap_login_upsell,ig_fbns_push,ig_android_phoneid_sync_interval"}
← 200 1.71kB
RESPONSE: {"experiments": [{"name": "ig_android_reg_login_btn_active_state", "group": "control_20160830", "additional_params": [], "params": [{"name": "button_filled_fade_in", "value": "false"}, {"name": "button_filled", "value": "false"}, {"name": "outline_opaque", "value": "false"}], "expired": true}, {"name": "ig_android_ci_opt_in_at_reg", "group": "test_button_at_username_20161116", "additional_params": [], "params": [{"name": "opt_in_at_username_page", "value": "2"}], "expired": true}, {"name": "ig_android_non_fb_sso", "group": "launch_0616_2017", "additional_params": [], "params": [{"name": "support_non_fb_sso", "value": "true"}], "expired": true}, {"name": "ig_android_contact_point_triage", "group": "test_with_phone_first_20160322", "additional_params": [], "params": [{"name": "is_enabled", "value": "enabled"}, {"name": "phone_first", "value": "enabled"}], "expired": true}, {"name": "ig_android_reg_next_btn_active_state", "group": "filled_fade_in_20160830", "additional_params": [], "params": [{"name": "button_filled_fade_in", "value": "true"}, {"name": "button_filled", "value": "false"}, {"name": "outline_opaque", "value": "false"}], "expired": true}, {"name": "ig_android_prefill_phone_number", "group": "test_20160908", "additional_params": [], "params": [{"name": "prefill_phone", "value": "true"}], "expired": true}, {"name": "ig_android_show_fb_social_context_in_nux", "group": "control_20160713", "additional_params": [], "params": [{"name": "show_context", "value": "true"}], "expired": true}, {"name": "ig_android_phoneid_sync_interval", "group": "test_6_hours", "additional_params": [], "params": [{"name": "fully_synced", "value": "604800"}, {"name": "partially_synced", "value": "21600"}], "expired": true}], "status": "ok"}

GET: si/fetch_headers/?challenge_type=signup&guid=c0b7ea6727584d10b6911a2059c82a6b
← 200 16B
RESPONSE: {"status": "ok"}

Missing csfrtokenPOST: upload/photo/
→ 94.76kB
← 403 67B
RESPONSE: {"message": "login_required", "logout_reason": 2, "status": "fail"}

login_required
İşlem devam ediyor, lütfen bekleyin..

Cevap yaz Sadece sorunun cevabını yazın