• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

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
System.Object
FacebookRequest
Namespace: DotNetNuke.Services.ClientCapability
Assembly: DotNetNuke.dll
Syntax
public class FacebookRequest : object

Properties

| Improve this Doc View Source

Algorithm

Gets or sets mechanism used to sign the request.

Declaration
public string Algorithm { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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
| Improve this Doc View Source

Expires

Gets or sets dateTime when the oauth_token expires.

Declaration
public DateTime Expires { get; set; }
Property Value
Type Description
DateTime
| Improve this Doc View Source

IssuedAt

Gets or sets dateTime when the request was signed.

Declaration
public DateTime IssuedAt { get; set; }
Property Value
Type Description
DateTime
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

RawSignedRequest

Gets or sets raw signed request coming from FaceBook in Post.

Declaration
public string RawSignedRequest { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

UserCountry

Gets or sets user's country.

Declaration
public string UserCountry { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

UserID

Gets or sets facebook user identifier (UID) of the current user.

Declaration
public string UserID { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

UserLocale

Gets or sets user's locale.

Declaration
public string UserLocale { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

UserMaxAge

Gets or sets user's maximum age range.

Declaration
public long UserMaxAge { get; set; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

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 Source

IsValidSignature(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

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS