![]() $header = 'Content-Type: application/x-www-form-urlencoded charset=UTF-8' $header = 'Accept-Encoding: gzip,deflate' $csfrtoken = array_shift(explode(' ', $cookies)) $mid = array_shift(explode(' ', $cookies)) $ch = curl_init('') Ĭurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1) Is there any way possible to login programmatically via PHP to Instagram? I keep getting the message that the page could not be loaded and that I might need to enable cookies. ![]() ![]() ![]() But the Instagram login page requires cookies to login. I'm trying to programmatically login to Instagram via my own website because I want to retrieve direct messages from Instagram (this requires a login as it is not supported in the Instagram API (yet)). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |