Answer the question
In order to leave comments, you need to log in
The url.getInfo method fails with error 10, but the group.getInfo method succeeds. Bug or feature?
My scenario: a server application using the URL of a group in Odnoklassniki should get the number of group members.
The application first queries url.getInfo
to get the group ID, and then queries group.getInfo
to get the number of subscribers. For authorization, both requests use application_key
, and application application_secret_key
eternal
The problem is that a method request succeeds, but a method request fails, despite the method also requiring permission :access_token
group.getInfo
url.getInfo
group.getInfo
VALUABLE_ACCESS
{"error_code":10,"error_msg":"PERMISSION_DENIED : User must grant an access to permission 'VALUABLE_ACCESS'","error_data":"valuable_access"}
https://api.ok.ru/fb.do
?application_key=APP_KEY
&format=json
&method=url.getInfo
&url=https%3A%2F%2Fok.ru%2Fok
&sig=SIG
&access_token=ACCESS_TOKEN
https://api.ok.ru/fb.do
?application_key=APP_KEY
&fields=members_count
&format=json
&method=group.getInfo
&uids=50582132228315
&sig=SIG
&access_token=ACCESS_TOKEN
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question