<commit_before># Facebooker Plus

A Ruby on Rails plugin extending and adding features to [Facebooker][1], possibly beyond the originally intended scope of Facebooker itself.

[1]: http://github.com/mmangino/facebooker/tree/master

* Adds multi-application support by storing all application configuration in the database.
* Adds a lot of customizations to make sure iframe based Facebook applications work properly as long as you use Rails helpers.

WARNING: Completely untested with canvas applications.

## Install Plugin

Detailed instructions for n00bs are coming soon.

## Setup the Database

Run the following in your Rails project directory:

    script/generate model App

Modify the new migration that was created so it looks like this:

    class CreateApps < ActiveRecord::Migration
      def self.up
        create_table :apps do |t|
          t.column :fb_app_id, :bigint
          t.string :api_key
          t.string :secret_key
          t.string :name
          t.string :canvas_page_name  
          t.timestamps
        end<commit_msg>Updated the Readme file.<commit_after># Facebooker Plus

A Ruby on Rails plugin extending and adding features to [Facebooker][1], possibly beyond the originally intended scope of Facebooker itself.

[1]: http://github.com/mmangino/facebooker/tree/master

* Adds multi-application support by storing all application configuration in the database.
* Adds a lot of customizations to make sure iframe based Facebook applications work properly.
	* Cookies are set properly in WebKit-based browsers which default to deny 3rd party cookies.
	* All helpers are overloaded to include the _fb\_sig\_*_ params in all links, forms, button\_to and more.
	* In the actual requested URLs _xfb\_sig\_*_ is used instead to avoid issues with Facebook's invite forms which tend to strip the params from the URL, causing facebooker to fail for iframe applications in browsers which don't accept third party cookies.

WARNING: Completely untested with canvas applications.

## Install Plugin

Detailed instructions for n00bs are coming soon.

## Setup the Database

Run the following in your Rails project directory:

    script/generate model App

Modify the new migration that was created so it looks like this:

    class CreateApps < ActiveRecord::Migration
      def self.up
        create_table :apps do |t|
          t.column :fb_app_id, :bigint
          t.string :api_key
          t.string :secret_key
          t.string :name
          t.string :canvas_page_name  
          t.timestamps
        end
{'fraction_non_alphanumeric': 0.05188679245283019, 'fraction_numerical': 0.003537735849056604, 'mean_word_length': 3.395509499136442, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 9, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1015736', 'n_tokens_mistral': 673, 'n_tokens_neox': 646, 'n_words': 305}