V
V
vvmgev2016-02-28 18:54:40
PHP
vvmgev, 2016-02-28 18:54:40

How to post on a friend's facebook wall?

on my wall I can ... but on a friend or some page there
is no code

$linkData = [
  'link' => 'http://www.example.com',
  'message' => 'User provided message',
  ];

try {
  
  $response = $fb->post('/100011504973610/feed', $linkData, $session);
} catch(Facebook\Exceptions\FacebookResponseException $e) {
  echo 'Graph returned an error: ' . $e->getMessage();
  exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
  echo 'Facebook SDK returned an error: ' . $e->getMessage();
  exit;
}

echo $graphNode = $response->getGraphNode();

and here is the error
Graph returned an error: (#200) Feed story publishing to other users is disabled for this application

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay, 2016-02-29
@iNickolay

Is it really so difficult to translate the error yourself? x_x

Sharing a story with another user is disabled for this app

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question