HTML and CSS Reference
In-Depth Information
Figure 20-2: Basic app information.
At the bottom of the page, click the Save Changes button. Don't share your App Secret with anyone else.
(The secret in Figure 20-2 has been reset.) The App ID is public information used to identify your application.
Creating the Node.js Server
To create a Node.js server that can integrate with Facebook, you'll use a node module called Faceplate, created
by the web hosting company Heroku. This module will allow you to let users login with Facebook and read
and write Facebook data via the Facebook API. Later in the section “Pushing to a Hosting Service,” you will
generate a hosting URL on Heroku to allow others to play the game.
As usual, the first step to create a Node.js application is to create a package.json file that describes the
dependencies of the application. Because this application is hosted on Heroku, you also need to add an “en-
gines” section that indicates the version of Node.js that is required.
Create a new directory called blob_clicker and in that directory create a new package.json file with the con-
tents of Listing 20-1 .
Listing 20-1: Blob Clicker package.json
 
 
 
Search WWH ::




Custom Search