Answer the question
In order to leave comments, you need to log in
Why does FAPI.UI.postMediatopic work with type: “link” but not with type: “app”?
Hello!
I have a word game that has been running on Odnoklassniki for more than a year, and the sale of virtual goods also worked there without problems (I actually turned it off in January due to tedious reporting).
When I call the following code, it works and posts to https://ok.ru/feed
FAPI.UI.postMediatopic({media: [
{
type: "link",
noImage: true,
imageUrl: "https://slova.de/words/board-492x364.php?gid=81236",
url: "https://slova.de/game-81236",
}
]});
FAPI.UI.postMediatopic({media: [
{
type: "app",
text: "Игра 81236",
images: [{
url: "https://slova.de/words/board-492x364.php?gid=81236",
title: "Игра 81236"
}]
}
]});
{"code":100,"message":"APP image has unsupported url https://slova.de/words/board-492x364.php?gid=81236"}
function API_callback(method, result, data) {
if ("postMediatopic" == method) {
console.log(result);
console.log(data);
}
}
Answer the question
In order to leave comments, you need to log in
Problem solved by adding "&fake=fake.png" to my URL
I changed it to "&fake=" + (+new Date()) + ".png" to avoid caching
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question