This article describes how to post content (status, image, URL) to a user's Facebook wall using a PHP script. To do that, use the following procedure.
Step 1
Go to https://developers.facebook.com/apps, and click on "Create New Application" which is at the right site.

After clicking on the image given below, the "dialog box" has been opened, you can provide the name of your application then click on the "Continue" button.

Step 2
After clicking on the Continue button, the new Captcha dialog box will be opened. Fill it in and click on the "Continue" button.
Step 3
After clicking on the Continue button, your app id and secret has been generated, as you will see in the following image:
Step 4
After Step 3, enter the name of the Website you want to share messages and links of. You can also write the localhost (the id of your application that runs on the local server) with your PHP application name. The image given below shows how to do that. Then click on the "Save changes" button.

Step 5
After the completion of all these steps, download:
facebook-php-sdk-master.

It downloads as a zip file, extract it into your website root. Suppose I am using the "wamp" server, so I extract it into the www root.

Step 6
Now let's start working with the PHP script.
<html>
<body>
<?php
//facebook application configuration
$fbconfig['appid' ] = "Write app id here";
$fbconfig['secret'] = "Write secrete here";
try{
include_once ('.\facebook-php-sdk-master\src\facebook.php');
}
catch(Exception $o){
print_r($o);
}
$facebook = new Facebook(array(


Shruti ParikhPosted Mar 14, 2018, 6:02 AM
I am getting this error Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings... Kindly help me..
Tushar SolankiPosted Jun 9, 2014, 11:07 PM
Awesome Article..!!! Really much helpful.
Vinod KumarPosted Mar 21, 2013, 10:17 AM
thanx Sharad it's very helpfull article for posting wall on facebook.
Prabhakar MauryaPosted Mar 13, 2013, 5:46 AM
Nice Article
Nitin BhardwajPosted Mar 9, 2013, 1:02 AM
Nice Article