Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/etewiah/fb-canvas-rails
Example of a Facebook canvas app on Rails with a bunch of fixes, hacks, and workarounds for common problems
https://github.com/etewiah/fb-canvas-rails
Last synced: 14 days ago
JSON representation
Example of a Facebook canvas app on Rails with a bunch of fixes, hacks, and workarounds for common problems
- Host: GitHub
- URL: https://github.com/etewiah/fb-canvas-rails
- Owner: etewiah
- Created: 2012-06-25T14:47:29.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-03-12T22:29:12.000Z (almost 13 years ago)
- Last Synced: 2024-10-21T21:19:00.384Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 106 KB
- Stars: 1
- Watchers: 2
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fb-canvas-rails
This is a sample Facebook Canvas App built with Ruby on Rails 3.2. It demonstrates workarounds, fixes and hacks to solve some of the most frequently encountered problems with Facebook Canvas applications.
## Features
* Fixes broken back button in IFrame (uses PushState for smart browsers, and window.top.location for IE)
* Handles disabled 3rd party cookies gracefully (ie: maintain session even when cookies are disabled)
* Properly sets the P3P header for Internet Explorer
* Handles Facebook's signed_request POST transparently
* OAuth Authentication
* Sends CSRF token with AJAX requests
* CJAX script to for PushState. CJAX uses History.js under the hood and was heavily influenced by History.js and PJAX.## Demo
You can see this code in action at http://apps.facebook.com/fb-canvas-rails