Skip to main content

Facebook Application Development With Java In Google App Engine in Linux

Well, for some of you the title might seem weird. I've been recently very curious on facebook application development models. And my love for java and Google app engine have led me to explore whether facebook application development is possible in Java with Google App Engine. I've recently shifted my entire work-base to Ubuntu so the entire development process will be in Linux environment.Long back, facebook have officially stopped supporting java for developing facebook applications. However, some java freaks have created the library files that still supports facebook applications development in java parallel to the capability of php. Usually, 'python' is used to develop facebook applications in Google App Engine. I'm curious to find whether the same stuff can be done with java on Google App Engine. I'm just going to scratch the surface and do a trial. I'll try to stay posted this time.

Current Status:

  1. I've eclipse 3.5 for Ubuntu installed from the Ubuntu software center.
  2. I've installed the eclipse plug-in for supporting Google App Engine .
  3. I've finished the step 'Creating a project' and successfully executed the 'Guestbook' application from the tutorial provided by Google.
  4. I tried exporting the facebook libraries for java development from http://code.google.com/p/facebook-java-api/ according the instructions I followed from a tutorial form developers.com.
  5. It had deployed successfully. No Errors Yet!!!!

1st Status Update:

After 6 hours of pulling my hairs and drifting through several tutorials. I'd to give up with partial results. Everything went well almost till the end. It would've been nice if udayogra had given it all easily. Unfortunately, he had given only the skeleton of Java coding a facebook application. I had to add and correct at so many places. But finally, to my delight, I coded the complete error free servlet he had mentioned as skeleton in his tutorials. Doing all these in Google App Engine was pretty difficult.

Outcome: I got a non-functioning but live java facebook application hosted in Google App Engine. ( link (it might/might-not work rt now))

I'm pretty sure it can be made live by correcting some logical errors in supplying the parameter inside index.html and successfully making it retrieve inside the servlet. The output.jsp is still just a skeleton, I just made sure that it works (it works! :) )

To Do:
  • To try creating a <form> in input.html and pass the parameters to servlet.
  • Understand better about 'session' in facebook application.
  • Find out what on earth happened at the end of my tweaking the final code that stopped displaying the 'session' value!
I'd really like to continue with the rest of the task again tomorrow . I hope the talks planned tomorrow with the company that hired(stabilix.com) me goes well or some other alternative opens as God wills.

Comments

Popular posts from this blog

Building Autonomous Drone with Raspberry Pi and APM 2.8

I am a total newbie to hardware and was pushing my limits to see how far I can reach on with hardware projects (which sparked my interest lately). I have set out on a very ambitions mission  to control a drone from raspberry pi .I began the research for this around 2 months ago and had brought a raspberry pi, drone body kit and apm flight controller. The key difference of this project from common drone projects is that I'm trying to avoid the use of and RC and instead use the raspberry pi to control it.  Hardware Ins tallation Setup: I am using APM 2.8 and Mission Planner. I am using RPi 3 to control the APM 2.8 via Telem port of APM I am planning to power the apm via the battery to ESC (Electronic Speed Controllers) Now, documenting my steps below: Day 1 Watch Tutorial To get started with APM flight controller, I watched this video tutorial [1] which gives a gentle introduction about APM board.  Setup APM board and Calibrate Sensors I downloaded the APM Missi

Hadoop The Definitive Guide [Book] - Study Notes

Chap-1- Meet Hadoop Requirement and adoption in yahoo. A framework that can scale to the web. Map and Reduce acitivity and features like data locality. Can be applied with a variety of algorithms Huge data processing can beat good algorithms Chap-2 - MapReduce The Map Java class and Reducer Java class The Job java class Jobtracker and tasktracker Hadoop reduces the input to input splits or just splits Map tasks write the intermediate output to local disks, so that they can be discarded after use. Outputs of Reduce tasks are stored in HDFS Combiner function can be run on map output, and the combiner functions output forms the input to the reduce function Hadoop streaming proivide hadoop apis in languages other than Java Chap-3 - The Hadoop Distributed Filesystem Fault tolerant solution. Same data written at multiple places. Filesystems that manage the storage across a network of machines are called distributed filesystems. Blocks - a block size is the minim

Adafruit GFX - How to change line spacing in text?

  You may want to update the line spacing to be a little lower than default due to small screen size on IoT devices. I faced this challenge while working on a Watchy hobby project. You may have used a font generator or just using the default fonts and got a *.h file that has the details of the font. In that case just change the last integer value in the PROGMEM variable.