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
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
Tweaked README
  • Loading branch information
jgodse committed Feb 22, 2011
commit 9d1c914e111d33aea37b2dd7e55f4de10f653665
17 changes: 15 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,35 @@ 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 run this on Windows, you must first set the environment variables to the values you got from Facebook (above).

C:\> set FB_APPLICATION_ID=<APP_ID>
C:\> set FB_APPLICATION_SECRET=<APP_SECRET>

To run this on Linux/bash you must first set the environment variables to the values you got from Facebook (above).
$ export FB_APPLICATION_ID=<APP_ID>
$ export FB_APPLICATION_SECRET=<APP_SECRET>


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

1. git clone https://[email protected]/jgodse/jgodseFaceboku.git
2. cd jgodseFaceboku
3. heroku create --stack bamboo-ree-1.8.7
(save the URL give by Heroku for later)

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.
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

* Also note that I could not get this working as a FB canvas application.
* Also note that I could not get this working as a FB canvas application either in my version or the
* original version from which I forked.