API
Home
Pricing
Enterprise
Developers
REST API
Javascript API
Libraries (OAuth 1.0)
Forum
SIGN IN
Register
Guides
Welcome
Quick Start
How It Works
Authentication
Manually Loading Content
Themes and Styles
Managing Navigation
Sample Code
Script URL Parameter Reference
URL Parameter Overview
Parameters
auto_load
auto_nav
auto_template
fatsecret_session_key
key
show_loading
theme
Script Function Reference
Function Overview
Parameters
fatsecret.addRef
fatsecret.setCanvas
fatsecret.setContainer
fatsecret.writeHolder
fatsecret.variables.appTitle
Navigation
fatsecret.onTabChanged
fatsecret.setCanvasUrl
fatsecret.setDefaultCanvasUrl
fatsecret.variables.navOptions
Canvas Reference
Canvas Overview
General Purpose
home
calendar.get_month
Food Search
food.get
foods.search
Profile - Management
profile.sign_in
Profile - Food Diary
food_entries.edit
food_entries.bulk_create
Profile - Exercise Diary
exercise_entries.edit
Weight - Food Diary
weights.get
weight.update
CSS Reference
CSS Overview
Developers
JavasScript API
Guides: Sample Code
Sample Code
Sample for using FatSecret Platform JavaScript applications on web pages and examples of common customization requirements are shown below:
A Simple Example
A FatSecret Platform application in the blue
theme
:
Automatically loaded (single line of script)
Manually loaded (user-specified initialization)
Authentication
Overriding the profile.sign_in template
Your own login page
Manually Loading Content
Overriding the
food.get
canvas
with your own
canvas content
:
here
Themes and Styles
Setting up your own custom
theme
:
here
Managing Navigation
Setting up your own custom
navigation
:
here