D
D
Dmitry Anufriev2015-03-18 10:20:31
PHP
Dmitry Anufriev, 2015-03-18 10:20:31

Why is Facebook php api not posting to timeline?

Good afternoon, colleagues!
I am writing an automatic republishing of site records on a facebook page. For these purposes, I created a facebook web application. I am using facebook php api latest version. After successfully preparing all the necessary objects, this code works fine:

$response = (new FacebookRequest(
      $session, 'POST', '/385786931600139/photos', array(
      'message' => $post['text'],
      'url' => $post['photo'] 
      )))->execute()->getGraphObject();

but the post does not occur in the timeline of the page ( joxi.ru/GrqMeN6skM51rz), but in the "Publications on the page" area ( joxi.ru/12M1Q0KH0JB42J). Tried different graph entries ('/photos', '/feed', '/'). But none of them either gives the desired result, or returns an error about the lack of rights. What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
ipboyar, 2015-05-21
@OLweb

I also struggled with this for a long time ..
You need to use Page Access Token for publishing - www.devils-heaven.com/facebook-access-tokens What
rights you need to request from the user: manage_pages, publish_actions, publish_pages

M
Michael, 2015-03-20
@Remdev

If I understand correctly, then you need to use /me/feed so that it appears in the timeline

D
Dmitry Anufriev, 2015-03-23
@OLweb

But, /me/feed should post to the page owner's wall, not the page itself?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question