Help Pages
Help pages can be used to add some static information to the game, such as privacy policy, terms of use, game documentation, encyclopedia, etc.
Creating Pages
To create the new page you should define the following page attributes:
- Name
This value will be used as the page title. - Page URL
This value can only contain letters, numbers, dashes, and underscores. It will be used to create help page address. - Content
This value will be displayed as a page content. Content can be formatted using HTML or Textile.
Content Formatting
Page content can be formatted using two different markup languages:
- Textile
Textile is a simplified markup language aimed to ease content markup for people who don’t know HTML. It allows you to easily style your text, add links, images, and tables. We recommend you to use it if you’re not familiar with HTML. Textile markup is getting parser by server and converted to HTML while displaying content. - HTML
HTML is a markup language used at every web page in the internet. If you’re not familiar with it then it’s better to use Textile. HTML content is displayed as-is without any prior filtering so please be careful when using codes from untrusted sources. Please also make sure to add ony valid HTML markup with closing tags to avoid design corruption when displaying help pages.
Referencing Help Pages
- Textile
To reference the help page from textile content within the game please insert the page reference as follows:
"(help). Link text":/help_pages/yourpageurl - HTML
To reference the help page from HTML content within the game please insert the page reference as follows:
<a class="help" href="/help_pages/yourpageurl">Link text</a> - Script Code
To reference the help page from the script template (file inapp/viewsfolder) please insert the reference as follows:
<%= help_link(:yourpageurl, "Link text") %> - External Website
To reference the help page from any external website please use the following url:
http://apps.facebook.com/yourgame/help_pages/yourpageurl/