FAPI.UI.postMediatopic

Mediatopic publishing with a confirmation from the user. To publish using a similar format attachment parameter, as well as in the method mediatopic.post.

Parameters

ParameterRequiredTypeDescription
attachmentYesjsonJson-coded information on the topic published by the media (see. The format below)
statusNobooleanSet mediatopic as the current user status

Example

FAPI.UI.postMediatopic({
    "media":[
        {
            "type": "text",
            "text": "Here you can see odnoklassniki API docs(click the link)"
        },
        {
            "type": "link",
            "url": "https://apiok.ru"
        },
        {
            "type": "poll",
            "question": "Do you like our API?",
            "answers": [
                { "text": "Yes" },
                { "text": "No" }
            ],
            "options": "SingleChoice,AnonymousVoting"
        }
    ]
}, false);