All Projects → Mohammedcha → Facebook-instan-games-SDK

Mohammedcha / Facebook-instan-games-SDK

Licence: Unlicense license
Learn how to integrate games built with JavaScript and HTML5 with Facebook instant games SDK

Projects that are alternatives of or similar to Facebook-instan-games-SDK

crazy racing
An html5 car-racing game
Stars: ✭ 16 (-72.88%)
Mutual labels:  html5-game, html5-canvas
Pacman
Pacman based on HTML5. 基于HTML5的吃豆人游戏 - 经典游戏开发样例
Stars: ✭ 707 (+1098.31%)
Mutual labels:  html5-game, javascript-game
Dot-World-Maker
Online web role playing game (RPG) engine let you build your own game directly from your browser.
Stars: ✭ 25 (-57.63%)
Mutual labels:  html5-game, html5-canvas
Classic Pool Game
Classic 8 Ball pool game written in JavaScript
Stars: ✭ 177 (+200%)
Mutual labels:  html5-canvas, javascript-game
C4
🔴🔵 Connect Four game in JS + Canvas
Stars: ✭ 156 (+164.41%)
Mutual labels:  html5-game, html5-canvas
guess-game
The classic guess the number game with some extra features.Try it
Stars: ✭ 28 (-52.54%)
Mutual labels:  html5-game, javascript-game
Egret Core
Egret is a brand new open mobile game and application engine which allows you to quickly build mobile games and apps on Android,iOS and Windows.
Stars: ✭ 3,631 (+6054.24%)
Mutual labels:  html5-game, html5-canvas
bullethell
A bullet hell game programmed using HTML5 and JS.
Stars: ✭ 30 (-49.15%)
Mutual labels:  html5-game, javascript-game
Kaetram Open
An open-source 2D HTML5 adventure based off BrowserQuest (BQ).
Stars: ✭ 138 (+133.9%)
Mutual labels:  html5-game, html5-canvas
Tap Tap Adventure
Tap Tap Adventure is a massively online 2D MMORPG set in the medieval times with twists.
Stars: ✭ 123 (+108.47%)
Mutual labels:  html5-game, html5-canvas
Phaser Kinetic Scrolling Plugin
Kinetic Scrolling plugin for Canvas using Phaser Framework
Stars: ✭ 117 (+98.31%)
Mutual labels:  html5-canvas, javascript-game
One Html Page Challenge
Can you create something cool without modern tools?
Stars: ✭ 205 (+247.46%)
Mutual labels:  html5-game, html5-canvas
Html5 Asteroids
Pure Javascript Asteroids
Stars: ✭ 287 (+386.44%)
Mutual labels:  html5-game, html5-canvas
The Matrix Effect
The incredible effect of rain of letters in the style of the Matrix trilogy.
Stars: ✭ 109 (+84.75%)
Mutual labels:  html5-game, html5-canvas
Slither.io Clone
Learn how to make Slither.io with JavaScript and Phaser! This game clones all the core features of Slither.io, including mouse-following controls, snake collisions, food, snake growth, eyes, and more. Progress through each part of the source code with our Slither.io tutorial series.
Stars: ✭ 168 (+184.75%)
Mutual labels:  html5-game, javascript-game
HTML5-Space-Invaders
A Space Invaders HTML5 porting. This work is licensed under a Creative Commons Attribution - Share Alike 3.0 - Unported license (CC BY-SA 3.0). The text of the license is available at http://creativecommons.org/licenses/by-sa/3.0/ .
Stars: ✭ 36 (-38.98%)
Mutual labels:  html5-game, javascript-game
a trivia game
A minigame where you answer trivia questions
Stars: ✭ 27 (-54.24%)
Mutual labels:  html5-game
LodeRunner
Lode Runner (超級運動員) - APPLE-II remake version
Stars: ✭ 46 (-22.03%)
Mutual labels:  javascript-game
phaser-3-vsc-typescript-nodejs
Template for a new Phaser 3 project with Visual Studio Code, TypeScript, and Node.js.
Stars: ✭ 18 (-69.49%)
Mutual labels:  javascript-game
black-hole-square
A puzzle game for js13k 2021
Stars: ✭ 42 (-28.81%)
Mutual labels:  javascript-game

Facebook-instan-games-SDK

Learn how to integrate games built with JavaScript and HTML5 with Facebook instant games SDK

1. You need to start creating your game client. The game client needs to have an index.html file in the root directory. Start by importing the Instant Games SDK by adding this line in the head of your game before the </ head> Tag.

<script src="https://connect.facebook.net/en_US/fbinstant.6.2.js"></script>

2. Start loading game assets by adding this Script in the body of your game after the < body> Tag.

<script>
  FBInstant.initializeAsync().then(function() {
    FBInstant.setLoadingProgress(100);
  });
  FBInstant.startGameAsync().then(function() {
    game.start();
  })
</script>

3. The fbapp-config.json file should be placed in the main folder of the game (the same folder that contains index.html)

You can now compress the whole folder in zip format and upload it to Facebook.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].