Instantly build and deploy an awesome Facebook Quiz Application For Free of Cost With OpenShift Free PaaS and Their Prototype Application. As we all know, both Heroku and OpenShift has Free Tier of usage for unlimited time period. Heroku was our PaaS of choice. Heroku is quite flexible, we wrote guide on how to Deploy a Facebook App With Heroku Cloud before. With OpenShift PaaS, you can also develop and run your Facebook App (Facebook Quiz Application in our example) quite easily.
Run Facebook Quiz Application on OpenShift PaaS
The method to deploy Facebook Quiz Application on OpenShift PaaS is a bit different. The source code of the Application can be found here :
1 2 3 | https://github.com/openshift-quickstart/openshiftquiz-facebook # Prototype App is here : https://apps.facebook.com/openshiftquiz/ |
Basically, we need not to fight much to deploy Facebook App with OpenShift. The workflow is not in the way we usually do for deploying normal PHP, Perl, Python, Ruby etc. Application on OpenShift. Obviously, most of us have a Facebook account, fundamentally one need to follow the initial steps as described in our older guide – Creating a Facebook App of Your Own.
---
Special Instruction For Running Facebook Quiz Application on OpenShift PaaS
Previously, we have shown on OpenShift SSH how to get started with OpenShift’s command line tool. There are viewers who complains about quality
of our videos, basically you need to increase the resolution from default one to 1080P HD (or what you need), with 1080P HD, honestly you can see the commands clearly on a 15″ Macbook Pro, because we create on Mac, here is how for the YouTube part :
Anyway, let us get back to the Topic. Here is fully different method, run this command :
1 2 3 | rhc app create openshiftquiz php-5.4 # Prototype App is here : # https://apps.facebook.com/openshiftquiz/ |
Official instruction is here :
1 | https://www.openshift.com/blogs/developing-facebook-applications-on-openshift-getting-set-up |
On the command line you will get options :
You will get a Page like this (app Page) :
Depending upon your namespace / FQDN, you have clone it to your local computer :
1 2 3 | git clone [openshift-app-git-url] [directory] # change [openshift-app-git-url] & [directory] # do stuff and push |
For the default App, you will see this is the page we see as default page :
1 2 3 | https://github.com/openshift-quickstart/openshiftquiz-facebook/blob/master/php/index.php # view raw https://raw.githubusercontent.com/openshift-quickstart/openshiftquiz-facebook/master/php/index.php |
Your work is to work within the PHP named directory and avoid modifying Facebook specific stuffs. Logic of Quiz in PHP usually goes in this way :
1 | https://github.com/valerysamovich/quiz-app/blob/master/process.php |
We found a CakePHP App :
1 | https://github.com/Likho/QuizApplication |
You have to find kind of prototype of what you want to create your custom App.