Difference between revisions of "Facebook"
Line 12: | Line 12: | ||
5. If enabled, disable "Application does not run in background" property in .plist file.<br /> | 5. If enabled, disable "Application does not run in background" property in .plist file.<br /> | ||
<br /> | <br /> | ||
− | The [[Facebook]] class is defined in module "facebook". Therefore, you need to call<br /> | + | The [[Special:MyLanguage/Facebook|Facebook]] class is defined in module "facebook". Therefore, you need to call<br /> |
− | [[require("facebook")]] before using it. Loading the Facebook module <br /> | + | [[Special:MyLanguage/require("facebook")|require("facebook")]] before using it. Loading the Facebook module <br /> |
− | also creates a global variable [[facebook]] of type [[Facebook]] for direct use. <br /></translate> | + | also creates a global variable [[Special:MyLanguage/facebook|facebook]] of type [[Special:MyLanguage/Facebook|Facebook]] for direct use. <br /></translate> |
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== Methods === | === Methods === | ||
− | [[Facebook:authorize]] <br/> | + | [[Special:MyLanguage/Facebook:authorize|Facebook:authorize]] <br/> |
− | [[Facebook:dialog]] <br/> | + | [[Special:MyLanguage/Facebook:dialog|Facebook:dialog]] <br/> |
− | [[Facebook:extendAccessToken]] <br/> | + | [[Special:MyLanguage/Facebook:extendAccessToken|Facebook:extendAccessToken]] <br/> |
− | [[Facebook:extendAccessTokenIfNeeded]] <br/> | + | [[Special:MyLanguage/Facebook:extendAccessTokenIfNeeded|Facebook:extendAccessTokenIfNeeded]] <br/> |
− | [[Facebook:getAccessToken]] <br/> | + | [[Special:MyLanguage/Facebook:getAccessToken|Facebook:getAccessToken]] <br/> |
− | [[Facebook:getExpirationDate]] <br/> | + | [[Special:MyLanguage/Facebook:getExpirationDate|Facebook:getExpirationDate]] <br/> |
− | [[Facebook:graphRequest]] <br/> | + | [[Special:MyLanguage/Facebook:graphRequest|Facebook:graphRequest]] <br/> |
− | [[Facebook:isSessionValid]] <br/> | + | [[Special:MyLanguage/Facebook:isSessionValid|Facebook:isSessionValid]] <br/> |
− | [[Facebook:logout]] <br/> | + | [[Special:MyLanguage/Facebook:logout|Facebook:logout]] <br/> |
− | [[Facebook:setAccessToken]] <br/> | + | [[Special:MyLanguage/Facebook:setAccessToken|Facebook:setAccessToken]] <br/> |
− | [[Facebook:setAppId]] <br/> | + | [[Special:MyLanguage/Facebook:setAppId|Facebook:setAppId]] <br/> |
− | [[Facebook:setExpirationDate]] <br/> | + | [[Special:MyLanguage/Facebook:setExpirationDate|Facebook:setExpirationDate]] <br/> |
− | [[Facebook:shouldExtendAccessToken]] <br/> | + | [[Special:MyLanguage/Facebook:shouldExtendAccessToken|Facebook:shouldExtendAccessToken]] <br/> |
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== Events === | === Events === | ||
− | [[Event.DIALOG_CANCEL]]<br/> | + | [[Special:MyLanguage/Event.DIALOG_CANCEL|Event.DIALOG_CANCEL]]<br/> |
− | [[Event.DIALOG_COMPLETE]]<br/> | + | [[Special:MyLanguage/Event.DIALOG_COMPLETE|Event.DIALOG_COMPLETE]]<br/> |
− | [[Event.DIALOG_ERROR]]<br/> | + | [[Special:MyLanguage/Event.DIALOG_ERROR|Event.DIALOG_ERROR]]<br/> |
− | [[Event.LOGIN_CANCEL]]<br/> | + | [[Special:MyLanguage/Event.LOGIN_CANCEL|Event.LOGIN_CANCEL]]<br/> |
− | [[Event.LOGIN_COMPLETE]]<br/> | + | [[Special:MyLanguage/Event.LOGIN_COMPLETE|Event.LOGIN_COMPLETE]]<br/> |
− | [[Event.LOGIN_ERROR]]<br/> | + | [[Special:MyLanguage/Event.LOGIN_ERROR|Event.LOGIN_ERROR]]<br/> |
− | [[Event.LOGOUT_COMPLETE]]<br/> | + | [[Special:MyLanguage/Event.LOGOUT_COMPLETE|Event.LOGOUT_COMPLETE]]<br/> |
− | [[Event.REQUEST_COMPLETE]]<br/> | + | [[Special:MyLanguage/Event.REQUEST_COMPLETE|Event.REQUEST_COMPLETE]]<br/> |
− | [[Event.REQUEST_ERROR]]<br/> | + | [[Special:MyLanguage/Event.REQUEST_ERROR|Event.REQUEST_ERROR]]<br/> |
=== Constants === | === Constants === | ||
|} | |} |
Revision as of 16:35, 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.