W
W
w_b_x2016-09-19 11:58:03
API
w_b_x, 2016-09-19 11:58:03

How to get a person's photo via HTTPS VK?

Good day!

In general, through JS I get information on the VK API:

https://api.vkontakte.ru/method/users.get?uids=' + vk + '&fields=photo_200,sex,bdate,city,status&callback=?


In response I get something like:
{"response":[{"uid":1,"first_name":"Павел","last_name":"Дуров","sex":2,"bdate":"10.10.1984","city":2,"photo_200":"http:\/\/cs629231.vk.me\/v629231001\/c541\/TaUV7CG7RHg.jpg","status":"道德經"}]}


And everything would be fine, but only when I embed a photo on the page of my service, where the protocol is https, then FF swears that not everything is loaded in https. It seems that there is a separate api for getting an avatar, but I would not really like to make another request, especially since sometimes people need to be loaded a lot. On https, the photo does not open naturally.

Maybe someone will come up with a solution to the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2016-09-19
@SmoKE_xD

Strange, I work according to the same scenario and everything is normal with SSL....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question