Start developing               Facebook apps in 13 steps                   Hamamatsu.rb#8 2011.10.12 @mackato             ...
1. Create a Heroku account                    http://www.heroku.com/11   10   12
2. Create a Facebook app               https://developers.facebook.com/apps11   10   12
3. Select Cloud Services     https://developers.facebook.com/apps/APP_ID/summary11   10   12
4. Create a Heroku app11   10   12
5. Go to your Facebook app on                          Heroku11   10   12
6. Download and Install Heroku                         Toolbelt                    http://toolbelt.herokuapp.com/11   10  ...
7. Log in from the CLI          % heroku login          Enter your Heroku credentials.          Email: mackato@gmail.com  ...
8. Fetch App’s source code                 https://floating-leaf-1045.herokuapp.com/          % git clone git@heroku.com:flo...
9. Create another Facebook app                       for development11   10   12
10. Enter your local URL as Site                            URL11   10   12
11. Set Facebook Env Vars                         Add Foreman to Gemfile                              gem "foreman"        ...
12. Start local server                    % foreman start                  http://localhost:5000/11   10   12
13. Commit and push your                       changes           % git ci -am "add foreman gem"           % g push heroku ...
Upcoming SlideShare
Loading in …5
×

Start developing Facebook apps in 13 steps

2,146 views

Published on

Hamamatsu.rb#8で発表したHerokuでFacebookアプリを開発する環境構築の資料です

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,146
On SlideShare
0
From Embeds
0
Number of Embeds
202
Actions
Shares
0
Downloads
11
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Start developing Facebook apps in 13 steps

  1. 1. Start developing Facebook apps in 13 steps Hamamatsu.rb#8 2011.10.12 @mackato @see http://devcenter.heroku.com/articles/facebook11 10 12
  2. 2. 1. Create a Heroku account http://www.heroku.com/11 10 12
  3. 3. 2. Create a Facebook app https://developers.facebook.com/apps11 10 12
  4. 4. 3. Select Cloud Services https://developers.facebook.com/apps/APP_ID/summary11 10 12
  5. 5. 4. Create a Heroku app11 10 12
  6. 6. 5. Go to your Facebook app on Heroku11 10 12
  7. 7. 6. Download and Install Heroku Toolbelt http://toolbelt.herokuapp.com/11 10 12
  8. 8. 7. Log in from the CLI % heroku login Enter your Heroku credentials. Email: mackato@gmail.com Password: Uploading ssh public key /Users/kato/.ssh/id_rsa.pub11 10 12
  9. 9. 8. Fetch App’s source code https://floating-leaf-1045.herokuapp.com/ % git clone git@heroku.com:floating-leaf-1045.git hamamatsurb-demo -o heroku Cloning into hamamatsurb-demo... remote: Counting objects: 86, done. remote: Compressing objects: 100% (78/78), done. remote: Total 86 (delta 33), reused 0 (delta 0) Receiving objects: 100% (86/86), 58.72 KiB | 35 KiB/s, done. Resolving deltas: 100% (33/33), done.11 10 12
  10. 10. 9. Create another Facebook app for development11 10 12
  11. 11. 10. Enter your local URL as Site URL11 10 12
  12. 12. 11. Set Facebook Env Vars Add Foreman to Gemfile gem "foreman" Create .env file in the root of your app FACEBOOK_APP_ID=YOUR_DEVELOPMENT_APP_ID FACEBOOK_SECRET=YOUR_DEVELOPMENT_APP_SECRET11 10 12
  13. 13. 12. Start local server % foreman start http://localhost:5000/11 10 12
  14. 14. 13. Commit and push your changes % git ci -am "add foreman gem" % g push heroku Counting objects: 7, done. Delta compression using up to 8 threads. Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 466 bytes, done. Total 4 (delta 3), reused 0 (delta 0) ... To git@heroku.com:floating-leaf-1045.git 2ab1863..a9b4422 master -> master11 10 12

×