H
H
hori_bar2019-03-09 20:02:24
Classmates
hori_bar, 2019-03-09 20:02:24

Why are Photos uploaded via the Odnoklassniki API not displayed in the group feed from the mobile version?

I upload photos via API as follows:
Step1: Get uploadUrl
1.1. Build the signature from the following line
aid=${aid}application_key=${appKey}format=jsongid=${gid}method=photosV2.getUploadUrl${sessionSectetKey}
1.2. We execute the following request
https://api.ok.ru/fb.do?
application_key=${appKey}&format=json&method=photosV2.getUploadUrl&aid=${aid}&sig=${sig}&gid=${gid}
&access_token=${token}
Step2: Upload the photo itself
POST to the uploadUrl obtained in Step1 , where we send the photo in the pic1 parameter, with the binary/octet-stream type
. From the response, we get photoId and photoToken.
Step 3: Commit the result.
1.1. Build the signature from the next line
application_key=${appKey}comment=0format=jsonmethod=photosV2.commitphoto_id=${photoId}token=${photoToken}
1.2 POST to https://api.ok.ru/fb.do with the following parameters
application_key=${ appKey},
comment=0,
format=json,
access_token=${accessToken},
method=photosV2.commit,
photo_id=${photoId},
token=${token},
sig=${signature}
====== ======
As a result, we get a successfully uploaded photo.
Information about the uploaded photo appears in the group feed.
This notification is visible from the computer, i.e. from Web Version ok.ru.
But this notification is NOT visible from the phone, i.e. from mobile version m.ok.ru
Question: What parameters need to be added so that the photo can be seen from the mobile version?
Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question