Posting to facebook page with php script?

Is it possible to post on MY facebook wall page using a php script? (page not profile)
If so how can I do that?

An example would be amazing :smiley:

Thanks in advance, Dan.

Yes it is. The Facebook developer API provides all of the details.

Hear is an example that I quickly found by searching for php post facebook


$attachment = array(
    'message' => 'this is my message',
    'name' => 'This is my demo Facebook application!',
    'caption' => "Caption of the Post",
    'link' => 'http://mylink.com',
    'description' => 'this is a description',
    'picture' => 'http://mysite.com/pic.gif',
    'actions' => array(array(
        'name' => 'Get Search',
        'link' => 'http://www.google.com'
    ))
);
$result = $facebook->api(
    '/me/feed/',
    'post',
    $attachment
);

You may want to consider performing similar searches yourself.

I am searching google for more then 2 hours to find a soultion but I didnt find anything that could really solve my problem…
I could only find php codes that was posting on profile walls
not on profile pages that worked…

You are likely to find the best help for your situation at the Facebook Platform Developer Forum

Thank you for your answer I just posted there buy maybe someone here would know:

I found some kind of tutorial and I made an application + downloaded the facebook php SDK.
But how can I post on FAN PAGES walls?
So far my code is:


<?php

require 'facebook.php';

$facebook = new Facebook(array(
  'appId'  => 'XXXXXXXXXXX',
  'secret' => 'XXXXXXXXXXXXXXXX',
  'cookie' => true, // enable optional cookie support
));


// What kind of api call do I need to post on fan pages wall?
$me = $facebook->api('/me');

?>

The facebook php file I downloaded from:
https://github.com/facebook/php-sdk/

Let us hope that some kind of Facebook developer can help you with this.