Answer the question
In order to leave comments, you need to log in
How to get a link to a photo?
Good afternoon, I process my wall using the API, I receive posts, if there is a photo in the post, a link like
https://i.mycdn.me/image?id=864954426307&t=0&plc=A...
comes to the API
if it go then redirect you to this gif
https://i.mycdn.me/res/stub_128x96_02.gif
Why is this happening? Because of this, I can not display photos correctly)
Answer the question
In order to leave comments, you need to log in
Try adding "photo.*" to fields for user photos and "group_photo.*" for group photos. Then the response will contain a number of fields with links to pictures in different resolutions.
I do this, the request returns the following JSON
request for discussions.get
{
"discussion": {
"title": "aaaah",
"message": "Topic",
"object_type": "GROUP_TOPIC",
"object_id": "67859670687939",
"creation_date": "2018-04-12 18:03:11",
"last_activity_date": "1970-01-01 02:59:59",
"last_user_access_date": "1970-01-01 02: 59:59",
"new_comments_count": 0,
"total_comments_count": 0,
"like_count": 0,
"liked_it": false,
"ref_objects": [
{
"type": "GROUP",
"id": "53469205692611"
}
],
"attrs": {
"flags": "c,a"
}
},
"entities": {
"themes": [
{
"id": "67859670687939",
"title": "aaaah",
"images": [
{
"type": "group",
"id": "864954426307",
"pic50x50": " https://i.mycdn.me/image?id=864954426307&t=32&plc=... ",
"pic128x128": " https ://i.mycdn.me/image?id=864954426307&t=23&plc=... ",
"pic640x480": " https://i.mycdn.me/image?id=864954426307&t=0&plc=A... ",
"group_id": "53469205692611",
"author_type": "GROUP"
}
],
"attrs": {
"p": 1
}
}
],
"groups": [
{
"uid": "53469205692611",
"name": "me & me"
}
]
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question