AuthenticationClientManagerExtensions.AddFacebook Method (AuthenticationClientManager, String, String, Object)
.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, _
extraData As Object _
)
'Usage
Dim clients As AuthenticationClientManager
Dim appId As String
Dim appSecret As String
Dim extraData As Object
clients.AddFacebook(appId, appSecret, _
extraData)
public static void AddFacebook(
this AuthenticationClientManager clients,
string appId,
string appSecret,
Object extraData
)
[ExtensionAttribute]
public:
static void AddFacebook(
AuthenticationClientManager^ clients,
String^ appId,
String^ appSecret,
Object^ extraData
)
static member AddFacebook :
clients:AuthenticationClientManager *
appId:string *
appSecret:string *
extraData:Object -> unit
public static function AddFacebook(
clients : AuthenticationClientManager,
appId : String,
appSecret : String,
extraData : Object
)
Parameters
- clients
Type: Microsoft.AspNet.Membership.OpenAuth.AuthenticationClientManager
The OpenAuth client manager.
- appId
Type: System.String
Your Facebook appId.
- appSecret
Type: System.String
Your Facebook appSecret.
- extraData
Type: System.Object
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).