FacebookApi constructor

FacebookApi(
  1. String identifier,
  2. String clientId,
  3. String clientSecret,
  4. String redirectUrl, {
  5. List<String>? scopes,
  6. Client? client,
  7. Converter? converter,
  8. AuthStorage? authStorage,
})

Implementation

FacebookApi(String identifier, String clientId, String clientSecret,
    String redirectUrl,
    {List<String>? scopes,
    http.Client? client,
    Converter? converter,
    AuthStorage? authStorage})
    : super.fromIdAndSecret(identifier, clientId, clientSecret,
          client: client,
          scopes: scopes,
          converter: converter,
          authStorage: authStorage) {
  this.scopesRequired = false;
  this.tokenUrl = "https://graph.facebook.com/v2.3/oauth/access_token";
  this.baseUrl = "https://graph.facebook.com";
  this.authorizationUrl = "https://m.facebook.com/dialog/oauth/";
  this.redirectUrl = redirectUrl;
  this.scopes = scopes ?? ["public_profile"];
}