{"action":"closed","issue":{"url":"https://api.github.com/repos/mgp25/Instagram-API/issues/2246","repository_url":"https://api.github.com/repos/mgp25/Instagram-API","labels_url":"https://api.github.com/repos/mgp25/Instagram-API/issues/2246/labels{/name}","comments_url":"https://api.github.com/repos/mgp25/Instagram-API/issues/2246/comments","events_url":"https://api.github.com/repos/mgp25/Instagram-API/issues/2246/events","html_url":"https://github.com/mgp25/Instagram-API/issues/2246","id":364855957,"node_id":"MDU6SXNzdWUzNjQ4NTU5NTc=","number":2246,"title":"How check user is logged in or not?","user":{"login":"SiddheshShah","id":40713843,"node_id":"MDQ6VXNlcjQwNzEzODQz","avatar_url":"https://avatars3.githubusercontent.com/u/40713843?v=4","gravatar_id":"","url":"https://api.github.com/users/SiddheshShah","html_url":"https://github.com/SiddheshShah","followers_url":"https://api.github.com/users/SiddheshShah/followers","following_url":"https://api.github.com/users/SiddheshShah/following{/other_user}","gists_url":"https://api.github.com/users/SiddheshShah/gists{/gist_id}","starred_url":"https://api.github.com/users/SiddheshShah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SiddheshShah/subscriptions","organizations_url":"https://api.github.com/users/SiddheshShah/orgs","repos_url":"https://api.github.com/users/SiddheshShah/repos","events_url":"https://api.github.com/users/SiddheshShah/events{/privacy}","received_events_url":"https://api.github.com/users/SiddheshShah/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-28T11:47:22Z","updated_at":"2018-09-28T14:30:11Z","closed_at":"2018-09-28T14:30:11Z","author_association":"NONE","body":"Here is my code :- \r\n$username = 'username';\r\n$password = 'password';\r\n$debug = false;\r\n$truncatedDebug = false;\r\nInstagramAPI\\Instagram::$allowDangerousWebUsageAtMyOwnRisk = true;\r\ntry {\r\n\t\\InstagramAPI\\Instagram::$allowDangerousWebUsageAtMyOwnRisk = true;\r\n\t$ig = new \\InstagramAPI\\Instagram($debug, $truncatedDebug);\r\n        $ig->login($username,$password);\r\n} catch (\\Exception $e) {\r\n\t echo 'Something went wrong: '.$e->getMessage().\"\\n\";\r\n}\r\n$ig = new \\InstagramAPI\\Instagram($debug, $truncatedDebug);\r\n$ig->login($username,$password);\r\n\r\n\r\nIf i change $debug = true then i can show my response.\r\nCan you please tell me how to check user is logged in or not..?"}}
{"actor":{"display_login":"mgp25"}}