Share via


AuthenticationClientManagerExtensions.AddFacebook Method (AuthenticationClientManager, String, String)

.NET Framework 4

Adds support for logging in with a Facebook account.

Namespace:  Microsoft.AspNet.Membership.OpenAuth
Assembly:  Microsoft.AspNet.Membership.OpenAuth (in Microsoft.AspNet.Membership.OpenAuth.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub AddFacebook ( _
    clients As AuthenticationClientManager, _
    appId As String, _
    appSecret As String _
)
'Usage
Dim clients As AuthenticationClientManager 
Dim appId As String 
Dim appSecret As String 

clients.AddFacebook(appId, appSecret)
public static void AddFacebook(
    this AuthenticationClientManager clients,
    string appId,
    string appSecret
)
[ExtensionAttribute]
public:
static void AddFacebook(
    AuthenticationClientManager^ clients, 
    String^ appId, 
    String^ appSecret
)
static member AddFacebook : 
        clients:AuthenticationClientManager * 
        appId:string * 
        appSecret:string -> unit
public static function AddFacebook(
    clients : AuthenticationClientManager, 
    appId : String, 
    appSecret : String
)

Parameters

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type AuthenticationClientManager. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.100) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.100).

See Also

Reference

AuthenticationClientManagerExtensions Class

AddFacebook Overload

Microsoft.AspNet.Membership.OpenAuth Namespace