My Project
0.10.0
Windows SDK for Facebook
|
#include <FacebookSession.h>
Public Member Functions | |
Windows::Foundation::IAsyncAction^ | LogoutAsync () |
Windows::Foundation::IAsyncOperation< FBResult^ >^ | ShowFeedDialogAsync (Windows::Foundation::Collections::PropertySet^ Parameters) |
Windows::Foundation::IAsyncOperation< FBResult^ >^ | ShowRequestsDialogAsync (Windows::Foundation::Collections::PropertySet^ Parameters) |
Windows::Foundation::IAsyncOperation< FBResult^ >^ | ShowSendDialogAsync (Windows::Foundation::Collections::PropertySet^ Parameters) |
Windows::Foundation::IAsyncOperation< FBResult^ >^ | LoginAsync () |
Windows::Foundation::IAsyncOperation< FBResult^ >^ | LoginAsync (winsdkfb::FBPermissions^ Permissions) |
Windows::Foundation::IAsyncOperation< FBResult^ >^ | LoginAsync (winsdkfb::FBPermissions^ Permissions, SessionLoginBehavior behavior) |
void | SetAPIVersion (int MajorVersion, int MinorVersion) |
void | SetWebViewRedirectUrl (Platform::String^ domain, Platform::String^ path) |
Windows::Foundation::IAsyncOperation< FBResult^ >^ | TryRefreshAccessToken () |
Properties | |
Platform::String^ | FBAppId [get, set] |
Platform::String^ | WinAppId [get, set] |
Platform::String^ | AppResponse [get] |
Response from FB App. | |
bool | LoggedIn [get] |
Returns whether session (user) is logged in. | |
winsdkfb::FBAccessTokenData^ | AccessTokenData [get, set] |
int | APIMajorVersion [get] |
int | APIMinorVersion [get] |
winsdkfb::Graph::FBUser^ | User [get] |
User info - valid after successful login. | |
Platform::String^ | WebViewRedirectDomain [get] |
Platform::String^ | WebViewRedirectPath [get] |
static FBSession^ | ActiveSession [get] |
static Windows::Storage::ApplicationDataContainer^ | DataContainer [get] |
The main object for the SDK, repository for access token, etc. FBSession is a singleton class that is used to configure the sdk's interaction with Facebook.
IAsyncOperation< FBResult^ > FBSession::LoginAsync | ( | ) |
Login to Facebook. This method defaults to SessionLoginBehavior::DefaultOrdering for its login method. The permissions requested are public_profile, email, user_friends.
IAsyncOperation< FBResult^ > FBSession::LoginAsync | ( | winsdkfb::FBPermissions^ | Permissions | ) |
Login to Facebook. This method defaults to SessionLoginBehavior::DefaultOrdering for its login method.
Permissions | The Facebook permissions that the app is requesting. |
IAsyncOperation< FBResult^ > FBSession::LoginAsync | ( | winsdkfb::FBPermissions^ | Permissions, |
SessionLoginBehavior | behavior | ||
) |
Login to Facebook. This method allows the login method to be specified.
Permissions | The Facebook permissions that the app is requesting. |
behavior | The login behavior to make the login attempt with. |
IAsyncAction FBSession::LogoutAsync | ( | ) |
Clear all login information, e.g. user info, token string, etc. Do note that this does not clear cookies.
void FBSession::SetAPIVersion | ( | int | MajorVersion, |
int | MinorVersion | ||
) |
Sets the Facebook API version that is specified with most API calls to Facebook.
MajorVersion | value for API major version. |
MinorVersion | value for API minor version. |
void FBSession::SetWebViewRedirectUrl | ( | Platform::String^ | domain, |
Platform::String^ | path | ||
) |
Sets the redirect URL for webview dialog requests. Note that either parameter can be set to nullptr to avoid changing the default.
domain | The domain name for the the redirect. Must include the protocol (e.g. https) |
path | The path of redirect. Must start with the '/' character. |
IAsyncOperation< FBResult^ > FBSession::ShowFeedDialogAsync | ( | Windows::Foundation::Collections::PropertySet^ | Parameters | ) |
Launch 'feed' dialog, to post to user's timeline.
Parameters | The collection of parameters used by the feed dialog. See https://developers.facebook.com/docs/sharing/reference/feed-dialog For more information. |
IAsyncOperation< FBResult^ > FBSession::ShowRequestsDialogAsync | ( | Windows::Foundation::Collections::PropertySet^ | Parameters | ) |
Launch 'request' dialog, to send app requests to user's Facebook friends.
Parameters | The collection of parameters used by the request dialog, the most notable being "message". |
IAsyncOperation< FBResult^ > FBSession::ShowSendDialogAsync | ( | Windows::Foundation::Collections::PropertySet^ | Parameters | ) |
Launch 'send' dialog, to send private message to user's friends.
Parameters | The collection of parameters used by the send dialog. See https://developers.facebook.com/docs/sharing/reference/send-dialog for more information. |
|
getset |
Access token data, only populated after LoginAsync() has been called.
|
staticget |
FBSession is a singleton object - ActiveSession is the way to acquire a reference to the object.
|
get |
The Facebook API major version that is specified with most http requests to Facebook. Defaults to 2. Can be changed with SetAPIVersion().
|
get |
The Facebook API minor version that is specified with most http requests to Facebook. Defaults to 1. Can be changed with SetAPIVersion().
|
staticget |
Get the Settings Container for the SDK
|
getset |
Facebook App ID that is provided by Facebook in their developer portal.
|
get |
Base domain to redirect to for webview dialog requests. Defaults to Facebook's website.
|
get |
Redirect path for webview dialogs requests. Defaults to /connect/login_success.html. Must start with a '/' character.
|
getset |
Windows App ID, must match the appliction's SID and the Windows Store SID field in the Facebook developer page for the app.