Class FacebookRequest
Make modules that are aware of Facebook’s signed_request – a parameter that is POSTed to the web page being loaded in the iFrame, giving it variables such as if the Page has been Liked, and the age range of the user.
For more details visit http://developers.facebook.com/docs/authentication/signed_request/.
Inheritance
Namespace: DotNetNuke.Services.ClientCapability
Assembly: DotNetNuke.dll
Syntax
public class FacebookRequest : object
Properties
| Improve this Doc View SourceAlgorithm
Gets or sets mechanism used to sign the request.
Declaration
public string Algorithm { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
AppData
Gets or sets content of a query string parameter also called app_data. Usually specified when the application built the link to pass some data to itself. Only available if your app is an iframe loaded in a Page tab.
Declaration
public string AppData { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Expires
Gets or sets dateTime when the oauth_token expires.
Declaration
public DateTime Expires { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
IssuedAt
Gets or sets dateTime when the request was signed.
Declaration
public DateTime IssuedAt { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
IsValid
Gets or sets a value indicating whether is this a valid FaceBook Request. Check this value prior to accessing any other property.
Declaration
public bool IsValid { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
OauthToken
Gets or sets token you can pass to the Graph API or the Legacy REST API.
Declaration
public string OauthToken { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
PageId
Gets or sets page's Id. Only available if your app is an iframe loaded in a Page tab.
Declaration
public string PageId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
PageLiked
Gets or sets a value indicating whether has the user has liked the page. Only available if your app is an iframe loaded in a Page tab.
Declaration
public bool PageLiked { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
PageUserAdmin
Gets or sets a value indicating whether is the page user Admin of the page. Only available if your app is an iframe loaded in a Page tab.
Declaration
public bool PageUserAdmin { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
ProfileId
Gets or sets page ID if your app is loaded within. Only available if your app is written in FBML and loaded in a Page tab.
Declaration
public long ProfileId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
RawSignedRequest
Gets or sets raw signed request coming from FaceBook in Post.
Declaration
public string RawSignedRequest { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
UserCountry
Gets or sets user's country.
Declaration
public string UserCountry { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
UserID
Gets or sets facebook user identifier (UID) of the current user.
Declaration
public string UserID { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
UserLocale
Gets or sets user's locale.
Declaration
public string UserLocale { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
UserMaxAge
Gets or sets user's maximum age range.
Declaration
public long UserMaxAge { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
UserMinAge
Gets or sets user's minimum age range.
Declaration
public long UserMinAge { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
Methods
| Improve this Doc View SourceIsValidSignature(String)
Make modules that are aware of Facebook’s signed_request – a parameter that is POSTed to the web page being loaded in the iFrame, giving it variables such as if the Page has been Liked, and the age range of the user.
For more details visit http://developers.facebook.com/docs/authentication/signed_request/.
Declaration
public bool IsValidSignature(string secretKey)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | secretKey |
Returns
| Type | Description |
|---|---|
| System.Boolean |