Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update web.md #400

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`.
Loading