Sha256: e09eb7f13da159773d782402fd488fd1f30bcbb9d035e89a8aec0410baacca19

Contents?: true

Size: 1.54 KB

Versions: 40

Compression:

Stored size: 1.54 KB

Contents

*******************************************************************************

Next:

1. Configure default url options for the mailer to generate URLs in emails.
   In production.rb it must be the actual host your application is deployed to.
   In config/environments/test.rb and config/environments/development.rb:

     config.action_mailer.default_url_options = { :host => 'localhost:3000' }

2. Migrate:

     rake db:migrate

4. Make sure you're displaying flashes somewhere. For instance, in a layout:

    <div id="flash">
      <% flash.each do |key, value| -%>
        <div id="flash_<%= key %>"><%=h value %></div>
      <% end -%>
    </div>

5. If you haven't, create your app in http://www.facebook.com/developers/createapp.php  

6. Create config/facebook.yml and put in there you app's information. It should look something like this:

	:app_id: #Get this from http://www.facebook.com/developers/createapp.php    
	:secret: #from FB    
	:api_key: #from FB    
	:base_url: http://localhost:3000 #This is the url where you app's in, this is where Fb should go after login    
	:after_login_path: /welcome/logged #Where to take your users when they login with FB    
	:after_register_path: /welcome/new #Where to go when a new user registers
	:url_after_create: /welcome/logged #Where to go when a session is created
	
7. Insert the JS for the login button and FB single sign-on redirection to work in your layouts.

	(...your layout code...)
	<%= facebook_js  %>
	</body> (....) 


*******************************************************************************

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
fbdoorman-0.9.3 generators/fbdoorman/templates/README
fbdoorman-0.9.2 generators/fbdoorman/templates/README
fbdoorman-0.9.1 generators/fbdoorman/templates/README
fbdoorman-0.9.0 generators/fbdoorman/templates/README
fbdoorman-0.8.0.98 generators/fbdoorman/templates/README
fbdoorman-0.8.0.97 generators/fbdoorman/templates/README
fbdoorman-0.8.0.95 generators/fbdoorman/templates/README
fbdoorman-0.8.0.94 generators/fbdoorman/templates/README
fbdoorman-0.8.0.93 generators/fbdoorman/templates/README
fbdoorman-0.8.0.92 generators/fbdoorman/templates/README
fbdoorman-0.8.0.91 generators/fbdoorman/templates/README
fbdoorman-0.8.0.9 generators/fbdoorman/templates/README
fbdoorman-0.8.0.8 generators/fbdoorman/templates/README
fbdoorman-0.8.0.7 generators/fbdoorman/templates/README
fbdoorman-0.8.0.6 generators/fbdoorman/templates/README
fbdoorman-0.8.0.5 generators/fbdoorman/templates/README
fbdoorman-0.8.0.4 generators/fbdoorman/templates/README
fbdoorman-0.8.0.2 generators/fbdoorman/templates/README
fbdoorman-0.8.0.1 generators/fbdoorman/templates/README
fbdoorman-0.8.0 generators/fbdoorman/templates/README