T
T
to2n2015-12-04 22:39:23
Classmates
to2n, 2015-12-04 22:39:23

How to correctly request permissions to call the mediatopic.post method?

I am using the oAuth implementation from ngCordova. Authentication request is made here by this URI

"http://www.odnoklassniki.ru/oauth/authorize?client_id=1235967744&scope=VALUABLE_ACCESS,PUBLISH_TO_STREAM&response_type=token&redirect_uri=http://localhost/callback&layout=m"

But later, when trying to create a post using mediatopic.post , an error is returned:
"PERMISSION_DENIED : User must grant an access to permission 'PUBLISH_TO_STREAM'"

What else could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vjacheslav Kanivetc, 2015-12-06
@Vjaka

The fact that PUBLISH_TO_STREAM is not enough to request via OAUTH - the application still has to pass moderation with us and get this right. We didn't approve this right for your application, so after OAUTH you don't have it either. And we give it out very rarely.
But for external applications, there are the following analogues:
1. Widget https://apiok.ru/wiki/pages/viewpage.action?pageId...
2. If your task is to post news to your group, then GROUP_ACCESS access is enough, which is easy to get

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question