A
A
Abraziv2018-07-27 14:42:16
API
Abraziv, 2018-07-27 14:42:16

How to specify the necessary rights during OKSDK.init() initialization?

var config = {
app_id: 0,
app_key: '',
scope : 'GROUP_CONTENT;VALUABLE_ACCESS;PHOTO_CONTENT;'
};
OKSDK.init(config, function() {
OKSDK.Widgets.getBackButtonHtml(function(html) {
document.getElementById('backBtn').innerHTML = html;
While publishing a post, I get an error:
{error_code: 10, error_msg: " PERMISSION_DENIED : User must grant an access to permission 'PHOTO_CONTENT'", error_data: "photo_content"}
Moreover, if you publish from the application owner, then there is no such error.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Abraziv, 2018-07-27
@Abraziv

Understood. It was also necessary to specify oauth: { scope : 'GROUP_CONTENT;VALUABLE_ACCESS;PHOTO_CONTENT'}
and clear the cache

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question