Thursday, December 1, 2011

Create Page in Facebook


How to Create a Page in FaceBook?

PHP Developer (starter) is wondering how to create a page in facebook for integrating application to that page. Here are the simple steps to be followed.



  • Login into facebook website
  • Go to the footer of the facebook
  • There you will find the link to create page
  • Click on the link and you will have list of options to create page where you have to select the page or type of page you are going to create. Like what does it support... 

  •      select the category for your page going to be suited.

  • Go through the other common process of adding the details to the page or you can skip for now.




  • Now your page is here. :)


Go ahead with creating of new applications on facebook and add these applications to the newly created pages. 

Have fun in creating applications.









Thursday, November 17, 2011

How to Integrate facebook api with PHP

We can integrate the facebook api with php. To integrate, download the latest PHP SDK version for facebook php api.
Download Facebook PHP SDK v3.1.1
The downloaded zip file contains the following files or folders:
  1. examples
    • example.php
  2. src
    • facebook.php
    • facebook_base.php
    • fb_ca_chain_bundle.crt
  3. tests
    • bootstrap.php
    • tests.php

Wednesday, November 16, 2011

Facebook App with PHP

I am very much interested on developing the facebook app with php sdk. I worked on various projects and applications.I would like to share some of my experiences here.

Italian Villa 

This app is used by end user to enter the code which is given to him in scratch card, and as the user enter the scratch the system verifies if it is valid and declares the user as winner. If user wins, he will get the prize announced else if he losses, still he will get a coupon where he will get 2 litres of pepsi for free. User can take the print of the coupon and use it when he visits the Italian Kitchen next time. User can recommend this app or kitchen to friends, or share on his or friends wall.

:)

PHP SuperGlobal Variables

The concept of SuperGlobal are introduced in PHP 4.1 Version.

PHP Superglobal variables are the php server array variables which contains the php script global data to access. They are predefined variables.
These superglobal variables contains the data coming from URLs or HTML forms, php sessions, php cookies. These data can be extracted from the global variables $_POST, $_GET, $_SERVER, $_SESSION, $_COOKIES.

$_GET : 
$_GET is the variable which stores the values that are passed to the php page from an html form with get method. 

Tuesday, November 15, 2011

Versions of PHP


1.0.0 June 8th, 1995 At first php was called as "Personal Home Page" PHP tool
2.0.0 Nov 1st, 1997 This is considered as fastest tool and very simplest tool for creating and developing dyamic web pages and web sites.
3.0.0 June 6th, 1998 Now, Multiple developers came into scene and rewritten the base version and released in this version.
3.0.18 Oct 20th, 1999 Stable release for PHP 3.0.x. There are many unsupported releases.
4.0.0 May 22nd, 2000 Added Zend engine: It is more advanced systemto parse or execute php
4.1.0 Dec 10th, 2001 Concept of SuperGlobals introduced. Read more on superglobals.
4.2.0 April 22nd, 2002 register_globals were disabled by default( click to know how to enable them ). By this action (disabling register_globals) more security is given to applications.
4.3.0 Dec 27th, 2002 CLI and CGI concepts were introduced to PHP
5.0.0 July 13th, 2004 Zend Engine is now developed with new object model. Most of the bugs were fixed which were introduced in last versions. With this version, PHP now is completely supporting oops concepts.
5.1.0 Nov 24th, 2005 In this version, Performance is improved alot, by introducing compiler variables for PHP Engine.
New concept of PDO ( PHP Data Objects ) is introduced.
5.2.0 Nov 2nd, 2006 Filter extension is now enabled by default in this version.
JSON is also supported from this version
5.2.17 Jan 6th, 2007 Critical bug related to floating point is fixed and made this version as stable
5.3.0 June 30th, 2009 In this version, Microsoft windows support is improved. SQLLite 3 is introduced.
5.3.1 Nov 11th, 2009 Security issues are fixed and more over 100 bugs are fixed.
5.3.2 March 4th, 2010 This version includes more fixes which were introduced last versions.
5.3.7 Aug 18th, 2011 In this release, it mainly focused on increasing the stability of PHP 5.3.x versions with more than 90 bug fixes. Most of them are related to security holes.
5.3.8 Aug 23rd, 2011 This release fixed other 2 issues and now it is made stable version and can be used for developing applications.