/// <summary> /// Registers a scope in the internal dictionary. /// </summary> /// <param name="name">The name of the scope.</param> /// <param name="description">The description of the scope.</param> internal static FacebookScope RegisterScope(string name, string description = null) { FacebookScope scope = new FacebookScope(name, description); Scopes.Add(scope.Name, scope); return(scope); }
/// <summary> /// Adds the specified <code>scope</code> to the collection. /// </summary> /// <param name="scope">The scope to be added.</param> public void Add(FacebookScope scope) { _list.Add(scope); }
public void Add(FacebookScope scope) { _list.Add(scope); }
/// <summary> /// Registers a scope in the internal dictionary. /// </summary> /// <param name="name">The name of the scope.</param> /// <param name="description">The description of the scope.</param> internal static FacebookScope RegisterScope(string name, string description = null) { FacebookScope scope = new FacebookScope(name, description); Scopes.Add(scope.Name, scope); return scope; }
/// <summary> /// Generates the authorization URL using the specified state and scope. /// </summary> /// <param name="state">The state to send to Facebook's OAuth login page.</param> /// <param name="scope">The scope of the application.</param> /// <see cref="https://developers.facebook.com/docs/facebook-login/login-flow-for-web-no-jssdk/#login" /> public string GetAuthorizationUrl(string state, FacebookScope scope) { return Client.GetAuthorizationUrl(state, scope.Name); }
/// <summary> /// Generates the authorization URL using the specified state and scope. /// </summary> /// <param name="state">The state to send to Facebook's OAuth login page.</param> /// <param name="scope">The scope of the application.</param> /// <see cref="https://developers.facebook.com/docs/facebook-login/login-flow-for-web-no-jssdk/#login" /> public string GetAuthorizationUrl(string state, FacebookScope scope) { return(Client.GetAuthorizationUrl(state, scope.Name)); }