Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REQUEST: Pull my changes to make this more "heroku friendly" #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changed faceboku to radiant-sky-944
  • Loading branch information
unknown authored and unknown committed Feb 21, 2011
commit 6716c08e36b7b394c9fab977a7cc515df7a39aeb
20 changes: 15 additions & 5 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,27 @@ To use this application, you first need to go to Facebook and get application cr
http://www.facebook.com/developers/createapp.php

You need your:
application ID: <APP_ID>
application secret: <APP_SECRET>

You need to set up Ruby 1.9.2, and the heroku gem
Facebook application ID: <APP_ID>
Facebook application secret: <APP_SECRET>

Also, pick a "Application Name" for your app in the Facebook config page.

You need to set up Ruby (I used 1.9.2) and the heroku gem
> gem install heroku

To deploy this application at heroku.com, you need to do the following:

1. git clone https://
1. git clone https://[email protected]/jgodse/jgodseFaceboku.git
2. cd jgodseFaceboku
3. heroku create --stack bamboo-ree-1.8.7
4. git push heroku master
5. heroku config:add FB_APPLICATION_ID=<APP_ID> FB_APPLICATION_SECRET=<APP_SECRET>
6. heroku open
7. Go to the application configuration page at Facebook and make sure that the "Site URL" and
"Canvas URL" is the same as the URL for this app. If you need to rename this app, use a
"heroku rename" on the app before reconfiguring Facebook.
8. At this point, reload the URL of your Facebook App and you should be able to login, logout, and hit the "like" and "share buttons.


* Note that this application does not work on the heroku stack bamboo-mri-1.9.2
* Run "heroku stack" to ensure that it is bamboo-ree-1.8.7
2 changes: 1 addition & 1 deletion views/index.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
<% if session['fb_auth'] %>
<hr />
<p><span class='like_site'>Do you like this site?</span></p>
<p><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ffaceboku.heroku.com%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe></p>
<p><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2F radiant-sky-944.heroku.com%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe></p>
<% end %>
4 changes: 2 additions & 2 deletions views/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta property="og:title" content="List of Articles"/>
<meta property="og:type" content="website"/>
<meta property="og:image" content="http://faceboku.heroku.com/images/heroku_logo.png"/>
<meta property="og:url" content="http://faceboku.heroku.com/"/>
<meta property="og:image" content="http://radiant-sky-944.heroku.com/images/heroku_logo.png"/>
<meta property="og:url" content="http://radiant-sky-944.heroku.com/"/>
<meta property="og:site_name" content="Heroku:Interesting Articles"/>
<meta property="fb:admins" content="643897273"/>

Expand Down