You are viewing a single comment's thread from:

RE: (Part 4)Tutorial On SteemConnect JS Submit A New Post Using @steemconnect pt4

in #utopian-io6 years ago (edited)

Hi @igormuba,

First; Thanks a lot great post series.

--

I clicked login button (its url has scope=vote,comment)
SteemConnect popup opened.
I entered username and key

I returned my url (localhost:3000 / test.com )
and I have got token

I used api.me and it return with logged user's name and other things

test.jpg

and I can read logged user in NodeJS

api.me(function(err, res) { loggeduser = res.user; });


But when I use
parentPermlink="test"; author="qbdp"; permlink="test"; title="test with sc"; body="steem connect test"; jsonMetadata='{tags:["test","test2"]}' api.comment("", parentPermlink, author, permlink, title, body, jsonMetadata, function (err, res) { console.log(err, res) });

I get error:

[SDKError: sc2-sdk error]
name: 'SDKError',
error: 'unauthorized_client',
error_description:
"Broadcaster account doesn't have permission to broadcast

--
If I havent got permision, how can I get information using with token? What do you think about this? And How can I fix?

Sort:  

Hi! I will try my best to help you. I have also faced similar problems learning. Have you configured the permissions on the steemconnect website correctly? What url are you using to login to steemconnect? Check if it has the comment authority on the scope "scope=vote,comment"

I think it is a scope issue, you can read more about scope at:
https://github.com/steemscript/steemconnect/wiki/OAuth-2

Thank you for your attention

I'm using scope=login,vote,comment
sc.jpg

and
I have posting authorize

qq.jpg

I did try again before this comment ( even I used manualy this link https://app.steemconnect.com/authorize/@qbdp before runing )

but I still get error

error_description:
"Broadcaster account doesn't have permission to broadcast for @qbdp"

I'll read again (and again) your links, thank you so much.