You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

fb-channel-file

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fb-channel-file

0.0.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

fb-channel-file

Adds a /channel.html route to a Rails app. This fixes a IE7 problem with the Facebook JS SDK.

See http://developers.facebook.com/docs/reference/javascript/ and http://stackoverflow.com/questions/2955012/facebook-javascript-sdk-fb-xd-fragment for more info.

Installation

Add this line to your application's Gemfile:

gem 'fb-channel-file'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fb-channel-file

Usage

Include the gem in your Gemfile. A route will automatically be added to your app. With no extra config the locale will be inferred from what I18n.locale returns. If I18n.locale doesn't contain a language part, the locale will default to en_US To configure something else, put this in an initializer in config/initializers:

FbChannelFileApp.config[:infer_locale] = false
FbChannelFileApp.config[:locale] = 'your locale'

For a list of Facebook supported locales look here: https://www.facebook.com/translations/FacebookLocales.xml

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Added some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

FAQs

Package last updated on 13 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts