botly icon indicating copy to clipboard operation
botly copied to clipboard

createShareButton() not working

Open rahulserver opened this issue 7 years ago • 0 comments

I am trying to create a share button like this:

                let buttons = [];
    buttons.push(botly.create());
    botly.sendButtons({
        id: senderId,
        text: "some text",
        buttons: buttons
    }, ((err, resp) => {
        console.log("Err: ", JSON.stringify(err));
        console.log("resp: ", JSON.stringify(resp));
    }));

But nothing shows up and on console.log shows this:

Err:  null
resp:  {"error":{"message":"(#100) Invalid button type","type":"OAuthException","code":100,"error_subcode":2018037,"fbtrace_id":"FhJ0FhIk6C2"}}

rahulserver avatar Dec 04 '17 11:12 rahulserver