A
A
Alexander2015-10-21 19:17:05
In contact with
Alexander, 2015-10-21 19:17:05

How to get newsfeed (news feed) via vk api?

I tried both openAPI and through php OAuth/API
I always get a response

[error_code] => 15
            [error_msg] => 'Access denied: no access to call this method'

The doc says
To call this method, your application must have permissions: wall and friends.

Which they don't give to sites, i.e. OAuth server authorization counts as a site too?
But at the same time, mobile applications may well receive user news.
It turns out that mob. developers cannot be inherently bad, and the web is always bad.
And I’ll immediately ask how meople did it, maybe someone knows how they implemented it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
entermix, 2015-10-21
@s2nner

i.e. OAuth server authorization counts as a site too?

Yes
OAuth 2.0-based authorization is a universal authorization method that fully complies with the OAuth 2.0 open protocol specification. Used primarily to authorize the server on which the external site is running.
Authorization via Open API is an alternative authorization method that uses a client-side Javascript library. This authorization method is used if it is necessary to call API methods not only from the site server, but also from the user's browser.
vk.com/dev/sites
Conclusion: use openAPI
You can of course imitate a desktop application (it used to work like this, then it was blocked) I don’t know how it is now with this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question