Jump to content

Instagram authentification on Gramfeed


xCreez
 Share

Recommended Posts

Hey,

I know how to login to Instagram

Func Ig_Login($Ig_User, $Ig_Passwort)
   $HTML = _WinHttpSimpleSSLRequest($Ig_Connect, 'GET', '/accounts/login/?force_classic_login&hl=de')
   $Ig_Token = StringRegExp($HTML, 'name="csrfmiddlewaretoken" value="(.+?)"', 3)[0]
   $postData = 'csrfmiddlewaretoken=' & $Ig_Token & '&username=' & $Ig_User & '&password=' & $Ig_Passwort
   $referer = 'https://www.instagram.com/accounts/login/?force_classic_login&hl=de'
   $HTML = _WinHttpSimpleSSLRequest($Ig_Connect, 'POST', '/accounts/login/?force_classic_login&hl=de', $referer, $postData)
   If StringInStr($HTML, 'profil') Then
      Return True
   Else
      Return False
   EndIf
EndFunc

but as soon as i want to authentificate my instagram account on Gramfeed it seems to have some problems,

The Sign In Button redirects to https://www.instagram.com/accounts/login/?force_classic_login=&next=/oauth/authorize%3Fscope%3Dcomments%2Blikes%2Brelationships%26redirect_uri%3Dhttp%3A//www.gramfeed.com/oauth/callback%3Fpage%3Dmain%26response_type%3Dcode%26client_id%3Db59fbe4563944b6c88cced13495c0f49, from there i have to login, but then as soon as i login i cant go on, because it redirects to "http://www.gramfeed.com/oauth/callback?page=main&code=???"

And i dont know how to get the code...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...