T
T
Tom Nolane2017-02-11 18:54:45
Facebook
Tom Nolane, 2017-02-11 18:54:45

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... 079170aaa10a4e96a148f351f54525cd.JPG
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

3 answer(s)
T
Tom Nolane, 2017-02-19
@tomnolane

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)

0
0xD34F, 2017-10-01
@vladimir_html

So ?

A
Andrey Fedorov, 2017-10-01
@aliencash

https://codepen.io/aliencash/pen/zEdKzV?editors=1100

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question