Developers Manual > Cocos2d-x > Advanced Features > Third Party SDK Integration > Plugin-X > Facebook Support for Cocos2d-x Beta > Coco2d-x with Facebook

(!) Plugin-X is obsoleted.

(/) Please check out SDKBOX for helps with your service SDK integration.

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.

Getting Started

  • 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

Facebook integration instruction for Cocos2d-x or Cocos2d-x-Lua on iOS

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.