Skip to main content

Posts

Showing posts with the label Heroku

Heroku Php Facebook Application Development Steps

Facebook Application Development in Php Today I'm trying to develop a sample php facebook application demonstrated in  the book 'Facebook Application Development with Graph API Cookbook ' by Shaswanth Srivasthava and Apeksha Singh. It's a raw php code given in the book but I'm trying to implement it in Heroku. I've already set-up the basic heroku environment in my Linux system. When I had to add new files to the existing project the following steps proved to be the solution "In a nutshell , you will use git add to start tracking new files and also to stage changes to already tracked files, then git status and git diff to see what has been modified and staged and finally git commit to record your snapshot into your history. This will be the basic workflow that you use most of the time." Reference Commands I used git add . : As mentioned above, to add new files. git commit -am "--comment--" : To commit ...

Using Heroku For Facebook Application Development - Common Errors

You might come across several issues while deploying facebook applications from heroku. This article describes most of the pitfalls you can avoid if you are are not very familiar with the environment. Mostly, I'd refer you to already existing tutorials that are hard to find on googling. These have been compiled together after several confusing research on the topic for long hours. Hope this might save someone's time if you are just starting up. This article is a supplement to the guide from Heroku You could follow the guide as it is initially and then come back to this article if it doesn't succeed at the first few attempts. Setting Up Heroku Error 1 1 $ % Total % Received % Xferd Average Speed Time Time Time Current 2 Dload Upload Total Spent Left Speed 3 100 2442 100 2442 0 0 2273 0 0:00:01 0:00:01 --:--:-- 5856 4 gpg: no writable keyring found: eof 5 gpg: error reading `-': general error 6 gpg: import from `-' failed: general error ...

Creating Facebook Application With Heroku

Recently, facebook  started offering official support to host facebook applications in the heroku cloud. I was just having a walkaround and thought of noting down some worthwhile things that could save few hours for a begginer. By the way, this post is exclusively for those who use ubuntu and are n00b just like me. 1. Initially, just follow the immaturely documented instructions and install the heroku toolbelt. Ubuntu Linux --   http://toolbelt.herokuapp.com/ linux/readme 2. Now go to your ubuntu terminal and login with your credentials to upload the ssh keys >$ heroku login 3. Bang! Errors? - Step 2 might not work for you if you don't have some dependancy packages installed in your ubuntu. First browse to the /usr/bin folder then ask you to if you still have some error like: heroku /command/run.rb:1:in `require': no such file to load -- readline (LoadError) Here you are missing ruby . You can install ruby by typing the following lines in the terminal ...