Answer the question
In order to leave comments, you need to log in
Why is Bad signature","error":"104 returned when trying to publish media topics?
0. I have app approved
1. there is an authorization link in OK
<a href="https://connect.ok.ru/oauth/authorize?client_id={app_id}&scope=VALUABLE_ACCESS;&response_type=token&redirect_uri=http://site.ru/&layout=m"><img src="/ok/logo_default.png" style="background:#cf6700"></a>
http://connect.ok.ru/dk?st.cmd=WidgetMediatopicPost&st.app=app_id&st.attachment={%22media%22:[{%22type%22:%22text%22,%22text%22:%22shit%22}]}&st.signature=signature&st.return=http://site.ru
Answer the question
In order to leave comments, you need to log in
Because the request lacks an access_token field to indicate that this is a specific OAUTH session. Without it, the session is taken from the cookie, where it either does not exist or does not match the signature.
Widget example on github https://github.com/apiok/js_sample_widgets/blob/gh...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question