Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Facebook sample application Web. Eat meals while tagging friends and places.

Notifications You must be signed in to change notification settings

sjpatel21/web-scrumptious

 
 

Repository files navigation

Installing Scrumptious Web

View the live demo

See the finished product in action at FacebookSampleApp.com

Place files on your webserver

Scrumptious Web requires a web server addressable from the public Internet running PHP with cURL enabled.

Clone the repository from GitHub into a folder inside your website's document root.

git clone [email protected]:fbsamples/web-scrumptious.git scrumptious
cd scrumptious

Initialize and update the Facebook PHP SDK submodule.

git submodule init
git submodule update

Configure your application

Edit the config.php file with the appropriate values for your application, audience, and server.

  1. Add information from your Facebook application including your app id, secret, and namespace.
  2. Set your Facebook locale to display JavaScript SDK strings in a language other than English.
  3. Specify a base URI, including the trailing slash, representing the URI to this directory's content on your webserver. e.g. http://example.com/
  4. Specify a static base URI, including the trailing slash, representing the URI to the sample's static content. e.g. http://example.com/static/ if on the same server or http://s.example.com/ if you choose to serve static files from a CDN or separate hostname.

Scrumptious Web overview

Scrumptious Web allows a visitor to browse a list of meals and view a detail page with more information about a meal of interest.

Scrumptious Web paired with a properly configured Facebook application adds identity and sharing features powered by Facebook:

External libraries

Scrumptious Web uses a few external libraries for demonstration purposes. The choice of these libraries for our example should demonstrate general development patterns but should not limit your development using your own language or libraries of choice.

  • Bootstrap CSS for a responsive layout adaptive to both desktop and mobile client widths and general CSS template styling; modal JavaScript to assist with showing and dismissing a modal share dialog. Bootstrap is licensed under the Apache License version 2.0
  • jQuery JavaScript for DOM selectors, DOM manipulation, layout computations, event handling and general browser abstraction functions. jQuery is licensed under the MIT license
  • JQuery UI autocomplete widget to display search results for Facebook friends and Facebook places. jQuery UI is licensed under the MIT license

About

Facebook sample application Web. Eat meals while tagging friends and places.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published