Facebook API Mock for Unity 3D Game

While developing a Unity 3D game targeting the Facebook platform, we encountered major testing challenges due to the lack of a proper Facebook API mock. To solve this, we built a custom Node.js web service emulating the Facebook API.

Key Features

  • Configurable responses – mock data, functional data, and error scenarios.
  • Emulated Facebook storage for testing data flow.
  • Emulated Facebook authorization to simulate user login.
  • Emulated leaderboards for gameplay ranking validation.
  • Emulated invites to test shared gameplay scenarios.

Additionally, we developed a custom Unity Editor extension with a user-friendly UI for managing mock behaviors and creating custom test scenarios, allowing rapid and flexible QA workflows.

Technologies Used:
Unity 3D, Node.js, C#, JavaScript