Now we will add support for signing in with Facebook.
View attachment 45735
1. Create a Facebook app and add an iOS platform:
Note that you can use the same Facebook app with B4A as well.
2. Enable Facebook in Firebase console and set the app id and app secret fields:
3. Add the OAuth redirect URI from Firebase to Facebook Login product:
4. Add the following attributes (change the number in UrlScheme to match your Facebook app id):
#QueriesSchemes: fbapi
#QueriesSchemes: fb-messenger-api
#QueriesSchemes: fbauth2
#QueriesSchemes: fbshareextension
#UrlScheme: fb3333333333333
5. Call Facebook.OpenUrl from Application_OpenUrl:
Private Sub Application_OpenUrl (Url As String, Data As Object, SourceApplication As String) As Boolean
If facebook.OpenUrl(Url, Data, SourceApplication) Then Return True
If auth.OpenUrl(Url, Data, SourceApplication) Then Return True
Return False
End Sub
See the attached example.