require 'facebook.php' ;
$facebook = new Facebook(array(
'appId' => ' ',
'secret'=>' ',
'cookie'=> true,
));
$session =$facebook->getSession();
if (!empty($session))
{
try
{
$uid = $facebook->getUser();
$user = $facebook->api('/me');
} catch (Exception $e){}
if (!empty($user))
{
if ($_GET['installed']=='1')
{
header("Location: http://apps.facebook.com/-----------");
}
echo "hello";
}
else
die("an error Occured.");
}
else
{
$url = $facebook->getLoginUrl();
echo"click here to php acdemy";
}
?>
index.php Canvas URL site url
---------
require 'facebook.php';
$facebook=new Facebook(array(
'appId' => '144061355653368',
'secret' =>'c8e80315fd221060bd964d0bfcdb6e4c',
'cookie' => true,
));
$session = $facebook->getSession();
if (!empty($session))
{
try
{
$uid = $facebook->getUser();
$user = $facebook->api('/me');
} catch (Exception $e){}
if (!empty($user))
{
if ($_GET['installed']=='1')
{
header("Location:http://apps.facebook.com/muthukkumaran/");
}
echo "hello" .$user['first_name']." ".$user['last_name'];
}
else
die("Error.");
}
else
{
$url = $facebook->getLoginUrl();
}
?>
Fan page email
$errors = '';
$myemail = 'mkumaran@deft.in';//<-----Put Your email address here.
if(empty($_POST['name']) ||
empty($_POST['email']) ||
empty($_POST['message']))
{
$errors .= "\n Error: all fields are required";
}
$name = $_POST['name'];
$email_address = $_POST['email'];
$message = $_POST['message'];
if (!eregi(
"^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$",
$email_address))
{
$errors .= "\n Error: Invalid email address";
}
if( empty($errors))
{
$to = $myemail;
$email_subject = "Contact form submission: $name";
$email_body = "You have received a new message. ".
" Here are the details:\n Name: $name \n Email: $email_address \n Message \n $message";
$headers = "From: $myemail";
$headers .= "Reply-To: $email_address";
mail($to,$email_subject,$email_body,$headers);
//redirect to the 'thank you' page
header('Location: contact-form-thank-you.html');
}
?>
Contact form handler
E-mail-to trials
Contact form handler
index.php example of tutorials
'144061355653368',
'secret' =>'c8e80315fd221060bd964d0bfcdb6e4c',
'cookie' => true,
));
$session = $facebook->getSession();
if (!empty($session))
{
try
{
$uid = $facebook->getUser();
$user = $facebook->api('/me');
} catch (Exception $e){}
if (!empty($user))
{
if ($_GET['installed']=='1')
{
header("Location:http://apps.facebook.com/muthukkumaran/");
}
echo "hello" .$user['first_name']." ".$user['last_name'];
}
else
die("Error.");
}
else
{
$url = $facebook->getLoginUrl();
echo"
Conect With FaceBook Deft Infosystems Pvt.Ltd";
}
?>
Muthukkumaran
}
echo "hello" .$user['first_name']." ".$user['last_name'];
}
else
die("Error.");
}
else
{
$url = $facebook->getLoginUrl();
echo"
Conect With FaceBook Deft Infosystems Pvt.Ltd";
}
?>
Muthukkumaran
Home
Services
Locations
We considered one of the most reputable and reliable software development companies in India ,also known as web development, website programming, or web based application development, is a field that is powering businesses with efficient, secure, and reliable solutions through software programs or applications, to achieve outstanding business results by increasing efficiency and reducing overhead. As standard software solutions cannot fulfill the individual requirements of a business, custom software development has emerged to help businesses derive unique solutions fit for their specific needs.
Software Outsourcing
Internet Marketing
Website Development
Offshore Software Development Company DEFT with 8 years of familiarity provide solutions in Web Development,Software solutions.
Internet Marketing is getting a large hike due to the increase of competitive online presence, start ups of small, medium and large corporations, entrepreneurs and non profits that are fetching expert consulting services to develop the brand and increase ROI. Internet Marketing provides you the facility to boost online publicity, extend conversion rates and assist to get higher business profits. We have with us the experts that can perk up existing campaigns or plan an all inclusive online media stratagem from scratch.
Our profession website designing services include
creative website design, Flash design and animation, multimedia, copy writing & editing graphic design
 |
Corporate Office |
|
(1) 309, Pratap Complex |
|
G-92, Munirka, |
|
New Delhi - 110067, |
|
|
India |
|
|
011-26194398/99, 65661080 |
|
|
+91 9871110348, +91 9810700226 |
|
" />
Home
Services
Locations
We considered one of the most reputable and reliable software development companies in India ,also known as web development, website programming, or web based application development, is a field that is powering businesses with efficient, secure, and reliable solutions through software programs or applications, to achieve outstanding business results by increasing efficiency and reducing overhead. As standard software solutions cannot fulfill the individual requirements of a business, custom software development has emerged to help businesses derive unique solutions fit for their specific needs.
-----------------------------------------------------
compose
require 'facebook.php';
$facebook=new Facebook(array(
'appId' => '144061355653368',
'secret' =>'c8e80315fd221060bd964d0bfcdb6e4c',
'cookie' => true,
));
$session = $facebook->getSession();
if (!empty($session))
{
try
{
$uid = $facebook->getUser();
$user = $facebook->api('/me');
} catch (Exception $e){}
if (!empty($user))
{
if ($_GET['installed']=='1')
{
header("Location:http://apps.facebook.com/muthukkumaran/");
}
echo "hello" .$user['first_name']." ".$user['last_name'];
}
else
die("Error.");
}
else
{
$url = $facebook->getLoginUrl();
}
?>
Muthukkumaran
We considered one of the most reputable and reliable software development companies in India ,also known as web development, website programming, or web based application development, is a field that is powering businesses with efficient, secure, and reliable solutions through software programs or applications, to achieve outstanding business results by increasing efficiency and reducing overhead. As standard software solutions cannot fulfill the individual requirements of a business, custom software development has emerged to help businesses derive unique solutions fit for their specific needs.
Offshore Software Development Company DEFT with 8 years of familiarity provide solutions in Web Development,Software solutions.
Internet Marketing is getting a large hike due to the increase of competitive online presence, start ups of small, medium and large corporations, entrepreneurs and non profits that are fetching expert consulting services to develop the brand and increase ROI. Internet Marketing provides you the facility to boost online publicity, extend conversion rates and assist to get higher business profits. We have with us the experts that can perk up existing campaigns or plan an all inclusive online media stratagem from scratch.
Our profession website designing services include
creative website design, Flash design and animation, multimedia, copy writing & editing graphic design
 | Corporate Office | |
|---|
| (1) 309, Pratap Complex | |
|---|
| G-92, Munirka, | |
| New Delhi - 110067, | |
| | India | |
| | 011-26194398/99, 65661080 | |
| | +91 9871110348, +91 9810700226 | |
Software Outsourcing
Internet Marketing
Website Development
Offshore Software Development Company DEFT with 8 years of familiarity provide solutions in Web Development,Software solutions.
Internet Marketing is getting a large hike due to the increase of competitive online presence, start ups of small, medium and large corporations, entrepreneurs and non profits that are fetching expert consulting services to develop the brand and increase ROI. Internet Marketing provides you the facility to boost online publicity, extend conversion rates and assist to get higher business profits. We have with us the experts that can perk up existing campaigns or plan an all inclusive online media stratagem from scratch.
Our profession website designing services include
creative website design, Flash design and animation, multimedia, copy writing & editing graphic design
 |
Corporate Office | |
| (1) 309, Pratap Complex | |
| G-92, Munirka, | |
| New Delhi - 110067, | |
| | India | |
| | 011-26194398/99, 65661080 | |
| | +91 9871110348, +91 9810700226 | |
0 comments on "Facebook App"
Post a Comment