Facebook Client

LoginButton Class

namespace Client.Controls
public classLoginButton
Overview

Represents a button control that can log in or log out the user when clicked.

Supported in:
  • Windows Store
  • Windows Phone 8
Summary
Constructors
public .ctor()
Initializes a new instance of the LoginButton class.
Properties
string public ApplicationId
Gets or sets the application ID to be used to open the session.
CornerRadius public CornerRadius
Gets or sets a value that represents the degree to which the corners of a Border are rounded.
FacebookSession public CurrentSession
Gets the current active session.
GraphUser public CurrentUser
Gets the current logged in user.
Audience public DefaultAudience
Gets or sets the default audience to use, if publish permissions are requested at login time.
bool public FetchUserInfo
Controls whether the user information is fetched when the session is opened. Default is true.
string public Permissions
Gets or sets the permissions to request.
Events
public AuthenticationError
public SessionStateChanged
public UserInfoChanged
Methods
void protected OnApplyTemplate()
Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.
Task public RequestNewPermissions(string permissions)
Requests new permissions for the current Facebook session.
Constructors
public .ctor()
Initializes a new instance of the LoginButton class.
Properties
public ApplicationId
Gets or sets the application ID to be used to open the session.
public CornerRadius
Gets or sets a value that represents the degree to which the corners of a Border are rounded.
public CurrentSession
Gets the current active session.
public CurrentUser
Gets the current logged in user.
public DefaultAudience
Gets or sets the default audience to use, if publish permissions are requested at login time.
public FetchUserInfo
Controls whether the user information is fetched when the session is opened. Default is true.
public Permissions
Gets or sets the permissions to request.
events
public AuthenticationError
public SessionStateChanged
public UserInfoChanged
Methods
protected void OnApplyTemplate()
Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.
public Task RequestNewPermissions(string permissions)
Requests new permissions for the current Facebook session.
Parameters
permissions The permissions to request.