V
V
vvmgev2016-02-26 15:25:34
Facebook
vvmgev, 2016-02-26 15:25:34

How to post on facebook wall?

$post= file_get_contents($url, false, stream_context_create(array(
            'http' => array(
                'method'  => 'POST',
                'header'  => 'Content-type: application/x-www-form-urlencoded',
                'content' => http_build_query(array('message'=>'hello world'))
            )
        )));

ERROR
Warning: file_get_contents( https://graph.facebook.com/v2.5/me/feed): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in D:\xampp\htdocs\test.local\index.php on line 102

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Yandimirkin, 2016-02-26
@vlaad360


First you need to create an application in facebook , copy and paste the authorization keys
.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question