gregoryheath14

Registered
Jan 24, 2012
1
0
51
cPanel Access Level
Website Owner
Excuse me if I have the wrong forum or post title but I am currently looking for some information and it would be great if someone could point me in the right direction..!

Essentially I am trying to:
1.Develop a facebook app by..
2.Hosting a .php file (the source/script code) in cPanel (located on the domain) and
3.Develop that .php file from a client using eclipse

Could anyone give me pointers as to the mechanisms i need to use to do this?

Any help is appreciated!

Thanks

Greg
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Excuse me if I have the wrong forum or post title but I am currently looking for some information and it would be great if someone could point me in the right direction..!

Essentially I am trying to:
1.Develop a facebook app by..
2.Hosting a .php file (the source/script code) in Cpanel (located on the domain) and
3.Develop that .php file from a client using eclipse

Could anyone give me pointers as to the mechanisms i need to use to do this?

Any help is appreciated!

Thanks

Greg
Actually, if you're not integrating with the actual features of cPanel&WHM but just want to create a PHP app, there's no need to use our APIs nor the SDK.

You would just need to build this like you would a typical PHP app.
 

KostonConsulting

Well-Known Member
Verifed Vendor
Jun 17, 2010
255
1
68
San Francisco, CA
cPanel Access Level
Root Administrator
Greg,
The process is quite simple. Once you create your PHP code, simply upload it to anywhere within your public_html directory and it will be executed when going to the URL. For a facebook app, you just need to point the canvas URL to the page on your site.

For example, if you wrote the following code:

Code:
<?php
    echo "This is where my facebook app will go";
?>
and your site was Myfacebookapp.com, upload the file to public_html/facebook.php and your canvas URL would be www .myfacebookapp.com/facebook.php

You'll want to take a look at the Facebook authentication for PHP and/or Javascript. That part is a bit more challenging. Here's a tutorial: How to Authenticate Users With Facebook Connect | Nettuts+