Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
darwinmorocho-deuna committed May 18, 2024
2 parents 3f372e6 + 9b2b7f4 commit 6668c41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/docs/web.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import 'package:flutter_facebook_auth/flutter_facebook_auth.dart';
.
.
.
void main() async {
Future<void> main() async {
// check if is running on Web
if (kIsWeb) {
// initialiaze the facebook javascript SDK
// initialize the facebook javascript SDK
await FacebookAuth.i.webAndDesktopInitialize(
appId: "YOUR_FACEBOOK_APP_ID",
cookie: true,
Expand All @@ -34,4 +34,4 @@ void main() async {
```


> On Web if the facebook SDK was not initialized by missing configuration or content blockers all methods of this plugin will return null or a fail status depending of the method. You can check if the SDK was initialized using ` FacebookAuth.i.isWebSdkInitialized`.
> On Web if the facebook SDK was not initialized by missing configuration or content blockers all methods of this plugin will return null or a fail status depending of the method. You can check if the SDK was initialized using ` FacebookAuth.i.isWebSdkInitialized`.

0 comments on commit 6668c41

Please sign in to comment.