T
T
temp_user_ab2015-11-16 14:51:21
Classmates
temp_user_ab, 2015-11-16 14:51:21

How to install the "Class" button of Odnoklassniki in the closed section of the site?

Good afternoon. The "Class" button of Odnoklassniki is in the closed section of the site. If users try to share some material, information (title, description, image) is collected from the authorization page, and not from the required url. Is it possible to pass the title and description I need when creating the Class button, as is done, for example, in facebook and vkontakte, so that the correct data goes to the social network via the link?

document.write(VK.Share.button({
    url: 'http://mysite.com',
    title: 'My Title',
    description: 'My Description',
    image: 'http://mysite.com/images/logo.png',
    noparse: true
},{type: "custom", text: ""}));

Answer the question

In order to leave comments, you need to log in

1 answer(s)
@
@GTimer, 2015-11-16
@temp_user_ab

No.
The need to classify / fumble the closed section is not very clear - after all, the user who sees the post in the feed will not be able to get there, instead of the promised article, he will see the authorization page, turn around and leave.
But if you forget about all this, then:
it turns out that you are fumbling just the same authorization page, which means that you need to add the necessary opengraph markup og: title, og: description to it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question