Your SlideShare is downloading. ×
Start developing Facebook apps in 13 steps
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Start developing Facebook apps in 13 steps

1,794
views

Published on

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

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

Published in: Technology

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,794
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
11
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 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. 1. Create a Heroku account http://www.heroku.com/11 10 12
  • 3. 2. Create a Facebook app https://developers.facebook.com/apps11 10 12
  • 4. 3. Select Cloud Services https://developers.facebook.com/apps/APP_ID/summary11 10 12
  • 5. 4. Create a Heroku app11 10 12
  • 6. 5. Go to your Facebook app on Heroku11 10 12
  • 7. 6. Download and Install Heroku Toolbelt http://toolbelt.herokuapp.com/11 10 12
  • 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. 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. 9. Create another Facebook app for development11 10 12
  • 11. 10. Enter your local URL as Site URL11 10 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. 12. Start local server % foreman start http://localhost:5000/11 10 12
  • 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

×