Answer the question
In order to leave comments, you need to log in
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();
Answer the question
In order to leave comments, you need to log in
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
If I understand correctly, then you need to use /me/feed so that it appears in the timeline
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 questionAsk a Question
731 491 924 answers to any question