Difference between revisions of "Facebook"
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''<translate>Supported platforms</translate>:''' [[File:Platform android]][[File:Platform ios]]<br/> | + | '''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]]<br/> |
'''<translate>Available since</translate>:''' Gideros 2012.09<br/> | '''<translate>Available since</translate>:''' Gideros 2012.09<br/> | ||
'''<translate>Inherits from</translate>:''' [[Special:MyLanguage/EventDispatcher|EventDispatcher]]<br/> | '''<translate>Inherits from</translate>:''' [[Special:MyLanguage/EventDispatcher|EventDispatcher]]<br/> | ||
Line 13: | Line 13: | ||
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 | + | 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 /> | |
− | also creates a global variable | + | also creates a global variable ''facebook'' of type [[Special:MyLanguage/Facebook|Facebook]] for direct use. <br /></translate> |
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| |
Revision as of 09:37, 24 August 2018
Supported platforms:
Available since: Gideros 2012.09
Inherits from: EventDispatcher
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.