C
C
code-by2017-10-21 17:30:20
Classmates
code-by, 2017-10-21 17:30:20

Post via mediatopic.post - how to specify the url to the image, and not use the one specified in og:image?

how to make the image for the post not be taken from og:image, but something else, because og:image is used for FB post, but OK and FB need to have different images.
Thank you

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Egorichev, 2017-10-30
@MaksimEgorichev

Are you creating a topic with "link" media type?
If yes, then there are two parameters in attachments to this type of topic:
noImage and imageUrl.
If you specify noImage=true, imageUrl="url_of_desired_image", then the image you need should be loaded near the topic
. For example: {"media": [{"type": "link", "noImage": true, "imageUrl": " https: //www.smashingmagazine.com/wp-content/upload... ","url": " https://news.mail.ru/society/31488312/?frommail=1 "}]}
In general, an application with type =link has many additional fields:
buttonKey:String
description:String
imageUrl:String
mediaIdx:
noDescription:boolean
noImage:boolean
signature:String
subId:int
title:String
type:link
url:String

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question