Answer the question
In order to leave comments, you need to log in
How does a delayed post with a picture look like in graph facebook?
Good day toasters and toasters!
How can I understand / find - how is a delayed entry on the page with a picture?
It works without a picture. With a picture, but not delayed, it also turns out.
I wrote in "bugs" on facebook - they said to use object_attachment , BUT
there is not a single example of how it should look...
if you remove attached_media - the recording will be postponed (without a picture, of course).
The picture itself loads successfully (I get an ID)
target_id - ID of the page
p.s. I am the admin on the page
p.s.s. token I use pages
p.s.s.s. doing a trial run through graph api explorer with all markers FB.URL_GRAPH + "/" + target_id + "/photos"
Answer the question
In order to leave comments, you need to log in
solution:
to publish a delayed entry with a picture, you do not need to first upload it (to get the ID), then attach it to the POST sending. When uploading an image to the Facebook server via GraphAPI, add additional fields to your POST:
"scheduled_publish_time= ...timespan here..."
instead of "message=your_text" use "caption=your_text" (for video use "description" ) and by itself "published=false"
i.e. you upload a picture + text + make a delayed post with one POST request and that's it)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question