Skip to main content

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 the changes
  • git push heroku : To push the committed changes to the web
  • heroku logs : This command retrieves the log from the web and display it on the command line. I use it when I find the following error message in the browser

"An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details."

Something I reassured on the way:

/ means the root directory
./ means the current directory
../ means the parent directory

The end.

After a 6 hour long effort I've found some success. But unfortunately, recognized some drawbacks which were never mentioned in the Heroku documentation.

  • Heroku is very much focus on Ruby on Rails
  • Heroku doesn't suppport ImageMagick but it does support GD. The support for GD is also limited and it totally avoid processing jpeg files which is very important. Again, it doesn't support functions like imagecreatefromstring() and imagecopymerge() without which I cannot complete my applications. 
I have an ideal facebook application in my mind, which I thought would be easy to implement in Heroku ( because it is officially supported by facebook itself), so I cant hit dead-ends and adjust with the limitations of the provider. I am a very application oriented person and never want to spent time on things that can't give me output within the time limit I fix. That's why I had to abandon Google App Engine previously. Now, I gotta give a halt to Heroku (atleast for now).  Well, I'm not much disappointed because I've got more clues to the direction I need to know; such as, PHP Fog has raised $1.8 million for its PaaS cloud targeting PHP developers. "Php is to PHP Fog as Ruby is to Heroku". This is what I heard.
I got a private beta account opened in PHP Fog from  via invitation from TechCrunch and now I'm gonna try my hands on PHP Fog.

Popular posts from this blog

ICFAI Sikkim Distance MBA Review From My Experience

After a long research I joined for the ICFAI distance MBA program in 2012. Now I've completed 2 semesters ( as of 2013 ). I wanted to write this review so that people who are looking for a good MBA program can get a hand-on review about the distance MBA offered by the ICFAI Sikkim. I've been through all the cycles of this program and this review might help you make the right choice about the program. This article presents my own ( and unbiased ) view of the program and is in no way associated with the course provider.

Is the MBA ICFAI Sikkim Approved By UGC?  As per the latest AICTE regulations, a distance education program must have the approval of a joint commission of  UGC- University Grant CommissionAICTE- All Indian Council for Technical EducationDEC- Distance Education CouncilICFAI Sikkim doesn't have this approval (don't get disappointed, it's not over yet). Only institutes and colleges affiliated to a University are required to take AICTE approval. So ICFAI be…

Is MacBook Air Good For Programming / Blogging ?

I'm a passionate java developer who just migrated from a Windows PC netbook ( Dell mini ) to a 13 inch MacBook Air. Before the netbook I owned a Dell inspirion 1501. I'm quite a bit of an avid blogger as well. I purchased Dell mini just as it was launched hoping that it's compact and mobile architecture would solve all of my need as a programmer and a writer. Unfortunately it turned out that it was a worthless device.The rest of the story goes...

Do Not Compare a Netbook With MacBook AirMacBook's astonishing features far exceeds anything that of a normal Netbook.Before
Buying a netbook for programming and blogging was one of the biggest blunders I ever made on choosing a machine. The screen was 11 inch and clumsy icons of the Windows were a disgrace all the time.The tightly arranged keys in the keyboard made typing a pain. It's slow Intel Atom Processor is too sluggish to run even VLC player.

After  The Mac's backlit spacious keyboard layout, 1440x900 resolution d…

Best Places To Eat at Trivandrum

Are you searching for the most amazing places to eat at Trivandrum? Well, this article is a collection of places from where I've carried the taste after eating. All of them are located in Trivandrum. There is no specific focus for a single kind or restaurant, I've written about the latest hot-spot cafes to ethnic and traditional places at the heart of the city and people for decades.
General Places Azad Hotel Azad Hotel is a hotel-chain all over India and they are one of the best hotels in Trivandrum too. They claim to have introduced the popular dish 'biriyani' in India. However, they provide a good ambience and tasty food. There are all kind of popular non-vegetarian dishes available here. They have a long tradition of serving quality food and that's what makes them the best. There are
Zam Zam This is the most sought after destination in city for the best cooked chicken dishes. The 'Shawai' is the all time best seller of Zam Zam. It's very rushy alwa…