Skip to content

Commit 60f687d

Browse files
committed
Update VBExample
1 parent 3b01be9 commit 60f687d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

samples/VBExample/Form1.vb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,17 @@ Public Class Form1
111111
LoadSession()
112112

113113
If Not InstaApi.IsUserAuthenticated Then
114+
' Call this function before calling LoginAsync
115+
Await InstaApi.SendRequestsBeforeLoginAsync()
116+
117+
114118
Dim logInResult = Await InstaApi.LoginAsync()
115119
Debug.WriteLine(logInResult.Value)
116120
If logInResult.Succeeded Then
117121
GetFeedButton.Visible = True
118122
Text = $"{AppName} Connected"
123+
'Call this function after a successful login
124+
Await InstaApi.SendRequestsAfterLoginAsync()
119125
' Save session
120126
SaveSession()
121127
ElseIf (logInResult.Value = InstaLoginResult.ChallengeRequired) Then

0 commit comments

Comments
 (0)