Plugin-X is obsoleted.¶
Coco2d-x and Cocos2d-x-Lua with Facebook
Cocos2d-x's and Cocos2d-x-Lua built-in support for Facebook's platform provides a comprehensive collection of Facebook's social features, giving your players the ability to share content with their friends and allowing you to create a personal, social gaming experience. With this addition, you can build cross-platform games by sharing a single code base and integrate Facebook features without importing additional frameworks or SDKs. The build-in Facebook support further extends the same "Code once, run everywhere" development experience by providing Facebook mobile platform features across Android and iOS.
Step 1: Before coding Facebook integration in Cocos2d-x or Cocos2d-x-Lua, you should learn the basic knowledge about the Cocos2d-x architecture and the workflow of Cocos2d-x development by referring to the Cocos2d-x introduction.
Step 2:Follow the docs below to learn how to setup Facebook integration in Cocos2d-x or Cocos2d-x-Lua for different Platforms:
- [Facebook integration instruction for Cocos2d-x or Cocos2d-x-Lua on iOS]
- [Facebook integration instruction for Cocos2d-x or Cocos2d-x-Lua on Android]
Step 3: Build our sample app to learn [How to Integrate with Facebook Sample app]
Step 4: Learn all the supported Facebook APIs and details in [Facebook API Reference for Cocos2d-x and Cocos2d-x-Lua]
Report Bugs or Need Help¶
Please visit our Online forum