My Project  0.10.0
Windows SDK for Facebook
Public Member Functions | Static Public Member Functions | Properties | List of all members
winsdkfb::FBAccessTokenData Class Reference

Represents an access token used for Facebook login, with associated data. More...

#include <FacebookAccessTokenData.h>

Public Member Functions

 FBAccessTokenData (Platform::String^ AccessToken, Windows::Foundation::DateTime Expiration)
 
bool IsExpired ()
 
void SetPermissions (Windows::Foundation::Collections::IVectorView< Object^ >^perms)
 

Static Public Member Functions

static FBAccessTokenDataFromUri (Windows::Foundation::Uri^ Response)
 

Properties

Platform::String^  AccessToken [get]
 
Windows::Foundation::DateTime ExpirationDate [get]
 
winsdkfb::FBPermissions^  GrantedPermissions [get]
 
winsdkfb::FBPermissions^  DeclinedPermissions [get]
 

Detailed Description

Represents an access token used for Facebook login, with associated data.

Member Function Documentation

FBAccessTokenData FBAccessTokenData::FromUri ( Windows::Foundation::Uri^  Response)
static

Attempts to create a FBAccessTokenData object from a URI.

Parameters
ResponseThe URI to construct a FBAccessTokenData object from
Returns
An FBAccessTokenData representation of the URI's data, or nullptr if the URI is invalid
bool FBAccessTokenData::IsExpired ( )

Compares the expiration time of the access token to the current time.

Returns
true if the access token is expired, false otherwise.
void FBAccessTokenData::SetPermissions ( Windows::Foundation::Collections::IVectorView< Object^ >^  perms)

Splits permissions into granted and declined groups then stores these as GrantedPermissions and DeclinedPermissions, respectively. Note that previous values for GrantedPermissions and DeclinedPermissions will be overwritten.

Parameters
permsCollection of permissions to divide.

Property Documentation

Platform:: String^ winsdkfb::FBAccessTokenData::AccessToken
get

Access token provided by Facebook on successful login.

winsdkfb:: FBPermissions^ winsdkfb::FBAccessTokenData::DeclinedPermissions
get

The permissions that were declined by the user.

Windows:: Foundation:: DateTime winsdkfb::FBAccessTokenData::ExpirationDate
get

Expiration date of the access token.

winsdkfb:: FBPermissions^ winsdkfb::FBAccessTokenData::GrantedPermissions
get

The permissions that were granted by the user.


The documentation for this class was generated from the following files: