AIRFacebook offers a rich and cross-platform API to the latest Facebook SDK for iOS and Android.
This is a demo application highlighting the core features of the extension. This repository also includes test version of the ANE (inside assets folder) that you are free to use during your development. In order to publish an application that uses this ANE you need to obtain a license.
- User authentication and permission management
- Content sharing (links, photos) to Facebook feed or via Messenger
- Sharing custom Open Graph stories
- Sending Game Requests and receiving events from notifications
- Sending App invitations
- Open Graph queries
- Scores & achievements for games
Including this and other extensions in your app increases the number of method references that must be stored in Android dex file. AIR currently supports a single dex file and since the number of such references is limited to a little over 65k, it is possible to exceed the limit by including several native extensions. This will prohibit you from building your app for Android, unless you reduce the number of features the app provides. Please, leave a vote in the report below to help adding multidex support to AIR SDK:
For instructions on how to set up your app with the ANE and code snippets on using some of the API read the following guides:
- Setting up with AIR app
- Getting started with ANE's API
- Using listener interfaces
- FAQ
- ActionScript docs
- iOS 7+
- Android 2.3.3+ (ANE v1.2.x), Android 4.0.3+ (ANE v1.3.x)
- Adobe AIR 18+
After going through the guide Setting up with AIR app, enter your Facebook app ID in the LoginScreen class. Add Starling and Feathers libraries to your project (compiled SWCs are available in assets/libs directory. Finally, set Startup class as your main/document class, compile and run as usually.
Demo application and ANE has been written by Marcel Piestansky.
You are given permission to use the ANE in agreement with the following license and copyright terms. Read the EULA before downloading and using this software.
Demo application uses the following libraries:
- UPDATED Facebook SDK to v4.14.0 for both iOS and Android
See full change log for previous updates.