Difference between revisions of "Facebook"
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2012.09<br/> === Description === <br /> Facebook SDK plugin is available for only iOS as an external...") |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Supported platforms:''' <br/> | + | '''Supported platforms:''' android, ios<br/> |
'''Available since:''' Gideros 2012.09<br/> | '''Available since:''' Gideros 2012.09<br/> | ||
=== Description === | === Description === | ||
Line 14: | Line 14: | ||
The `Facebook` class is defined in module "facebook". Therefore, you need to call<br /> | The `Facebook` class is defined in module "facebook". Therefore, you need to call<br /> | ||
`require("facebook")` before using it. Loading the Facebook module <br /> | `require("facebook")` before using it. Loading the Facebook module <br /> | ||
− | also creates a global variable `facebook` of type `Facebook` for direct use. <br />{|- | + | also creates a global variable `facebook` of type `Facebook` for direct use. <br /> |
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | {|- | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Methods === | === Methods === | ||
+ | [[Facebook:authorize]] - <br/> | ||
+ | [[Facebook:dialog]] - <br/> | ||
+ | [[Facebook:extendAccessToken]] - <br/> | ||
+ | [[Facebook:extendAccessTokenIfNeeded]] - <br/> | ||
+ | [[Facebook:getAccessToken]] - <br/> | ||
+ | [[Facebook:getExpirationDate]] - <br/> | ||
+ | [[Facebook:graphRequest]] - <br/> | ||
+ | [[Facebook:isSessionValid]] - <br/> | ||
+ | [[Facebook:logout]] - <br/> | ||
+ | [[Facebook:setAccessToken]] - <br/> | ||
+ | [[Facebook:setAppId]] - <br/> | ||
+ | [[Facebook:setExpirationDate]] - <br/> | ||
+ | [[Facebook:shouldExtendAccessToken]] - <br/> | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Events === | === Events === | ||
+ | [[Event.DIALOG_CANCEL]] | ||
+ | [[Event.DIALOG_COMPLETE]] | ||
+ | [[Event.DIALOG_ERROR]] | ||
+ | [[Event.LOGIN_CANCEL]] | ||
+ | [[Event.LOGIN_COMPLETE]] | ||
+ | [[Event.LOGIN_ERROR]] | ||
+ | [[Event.LOGOUT_COMPLETE]] | ||
+ | [[Event.REQUEST_COMPLETE]] | ||
+ | [[Event.REQUEST_ERROR]] | ||
=== Constants === | === Constants === | ||
|} | |} |
Revision as of 08:57, 23 August 2018
Supported platforms: android, ios
Available since: Gideros 2012.09
Description
Facebook SDK plugin is available for only iOS as an external plugin. To use facebook module:
1. Download and install Facebook SDK from https://developers.facebook.com/ios/downloads/
2. Add FacebookSDK.framework to your project.
3. Add the backward compatibility headers as described https://developers.facebook.com/docs/howtos/feed-dialog-using-ios-sdk/#step2
4. Add {Gideros Installation Directory}/All Plugins/Facebook/source/iOS/* files to your Xcode project.
5. If enabled, disable "Application does not run in background" property in .plist file.
The `Facebook` class is defined in module "facebook". Therefore, you need to call
`require("facebook")` before using it. Loading the Facebook module
also creates a global variable `facebook` of type `Facebook` for direct use.