Skip to content

Commit

Permalink
Update VBExample
Browse files Browse the repository at this point in the history
  • Loading branch information
ramtinak committed Feb 24, 2020
1 parent 3b01be9 commit 60f687d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions samples/VBExample/Form1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,17 @@ Public Class Form1
LoadSession()

If Not InstaApi.IsUserAuthenticated Then
' Call this function before calling LoginAsync
Await InstaApi.SendRequestsBeforeLoginAsync()


Dim logInResult = Await InstaApi.LoginAsync()
Debug.WriteLine(logInResult.Value)
If logInResult.Succeeded Then
GetFeedButton.Visible = True
Text = $"{AppName} Connected"
'Call this function after a successful login
Await InstaApi.SendRequestsAfterLoginAsync()
' Save session
SaveSession()
ElseIf (logInResult.Value = InstaLoginResult.ChallengeRequired) Then
Expand Down

0 comments on commit 60f687d

Please sign in to comment.