Answer the question
In order to leave comments, you need to log in
How to get the number of likes, comments and reposts in Odnoklassniki?
I was given the rights and access to the stream.get method, but there is no sense in this, because. I can't even get the number of likes.
First, I added to fields all the fields that fell under the *LIKE* pattern. Then it became clear that this did not change anything. I added all the feed and media_topic fields to fields. No errors, no data. What to do - I do not know.
Request example:
call('stream.get', {
gid: source.id,
count: 10,
patterns: "BANNER,COMMENT,CONTENT,FRIENDSHIP,GIFTS_CAMPAIGN,JOIN,LIKE,MESSAGE,P1,P2,PHOTO,PIN,POPULAR_TOPICS,POST,PRESENT,PROMO_PORTLET,PYMK,RECOMMENDED_GROUPS,TOP_MOVIE_PORTLET",
fields: 'feed.PINNED,feed.ACTIONS,feed.ACTION_TYPE,feed.ACTOR_REFS,feed.ALBUM_REFS,feed.APP_REFS,feed.AUTHOR_REFS,feed.BANNER,feed.COMMENT_REFS,feed.DATE,feed.DATE_MS,feed.DELETE_ID,feed.DIRECTION,feed.DISCUSSION_SUMMARY,feed.FEED_ID_MARKER,feed.FEED_OWNER_REFS,feed.FEED_STAT_INFO,feed.FRIENDID,feed.FRIEND_ID,feed.FRIEND_REFS,feed.GROUP,feed.HOLIDAY_REFS,feed.LIKE_SUMMARY,feed.MARK_AS_SPAM_ID,feed.MESSAGE,feed.MESSAGE_TOKENS,feed.OBJECTIDS,feed.OBJECTTYPE,feed.OBJECT_ID,feed.OBJECT_IDS,feed.OBJECT_TYPE,feed.OWNERID,feed.OWNER_ID,feed.OWNER_IDS,feed.OWNER_REFS,feed.PATTERN,feed.PHOTO_MAIN,feed.PHOTO_REFS,feed.PINNED,feed.PIN_ID,feed.PIN_REFS,feed.PLACE_REFS,feed.POST_REFS,feed.POST_STATUS,feed.PRESENT_REFS,feed.RECEIVER_REFS,feed.RESHARE_SUMMARY,feed.SENDER_REFS,feed.TARGET_REFS,feed.TITLE,feed.TITLE_TOKENS,feed.TYPE,media_topic.APP_REF,media_topic.ATTACHMENT,media_topic.AUTHOR_REF,media_topic.COMMENT_REFS,media_topic.CREATED_MS,media_topic.DELETE_ID,media_topic.DISCUSSION_SUMMARY,media_topic.EDIT_ALLOWED,media_topic.GROUP_JOIN_ALLOWED,media_topic.HAS_MORE,media_topic.ID,media_topic.IS_COMMENTING_DENIED,media_topic.IS_HIDDEN_POST,media_topic.IS_MODERATED_BANNER,media_topic.IS_ON_BEHALF_OF_GROUP,media_topic.IS_PROMO,media_topic.IS_STICKY,media_topic.IS_TEXT_CUT,media_topic.IS_UNMODIFIABLE,media_topic.LIKE_SUMMARY,media_topic.MARK_AS_SPAM_ID,media_topic.MEDIA,media_topic.MEDIA_APP_ACT_LINK,media_topic.MEDIA_APP_IMAGE,media_topic.MEDIA_APP_MARK,media_topic.MEDIA_APP_REF,media_topic.MEDIA_APP_TEXT,media_topic.MEDIA_APP_TITLE,media_topic.MEDIA_DESCRIPTION,media_topic.MEDIA_MEDIA_TOPIC_REFS,media_topic.MEDIA_MOVIE_REFS,media_topic.MEDIA_MUSIC_TRACK_REFS,media_topic.MEDIA_PHOTO_REFS,media_topic.MEDIA_POLL_REFS,media_topic.MEDIA_PRESENT_REFS,media_topic.MEDIA_RESHARE,media_topic.MEDIA_RESHARE_OWNER_REFS,media_topic.MEDIA_TEXT,media_topic.MEDIA_TEXT_TOKENS,media_topic.MEDIA_TITLE,media_topic.MEDIA_TYPE,media_topic.MEDIA_URL,media_topic.MEDIA_URL_IMAGE,media_topic.MEDIA_URL_IMAGES,media_topic.MEDIA_VIDEO_ALBUM_REFS,media_topic.OWNER_REF,media_topic.PIN_ALLOWED,media_topic.PLACE_REF,media_topic.PUBLICATION_DATE_MS,media_topic.RESHARE_COUNT,media_topic.RESHARE_SUMMARY,media_topic.TAGS,media_topic.TOPIC_ACCEPT_REJECT_ALLOWED,media_topic.TOPIC_COMMENT_ALLOWED,media_topic.TOPIC_SWITCH_COMMENTS_ALLOWED,media_topic.TO_STATUS_ALLOWED,media_topic.WITH_FRIEND_REFS',
reason: 'FIRST_START'
}, function(result) {
console.log(result);
});
Answer the question
In order to leave comments, you need to log in
Разве помимо массива feeds не приходит еще массив entities с media_topics?
У его сущности должны быть поля discussion_summary, like_summary и reshare_summary.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question