OAuthWebSecurity.RegisterFacebookClient Method (String, String)
Registers a Facebook client with a specified identifier.
Namespace: Microsoft.Web.WebPages.OAuth
Assembly: Microsoft.Web.WebPages.OAuth (in Microsoft.Web.WebPages.OAuth.dll)
Syntax
'Declaration
Public Shared Sub RegisterFacebookClient ( _
appId As String, _
appSecret As String _
)
'Usage
Dim appId As String
Dim appSecret As String
OAuthWebSecurity.RegisterFacebookClient(appId, _
appSecret)
public static void RegisterFacebookClient(
string appId,
string appSecret
)
public:
static void RegisterFacebookClient(
String^ appId,
String^ appSecret
)
static member RegisterFacebookClient :
appId:string *
appSecret:string -> unit
public static function RegisterFacebookClient(
appId : String,
appSecret : String
)
Parameters
- appId
Type: System.String
The application ID.
- appSecret
Type: System.String
The application secret.
Remarks
For an example of using the OAuthWebSecurity class, see Using OAuth Providers with MVC 4.