Skip to content

Custom Code docs accurate for Facebook? #21

@NobodysNightmare

Description

@NobodysNightmare

Hello,

I am currently trying to implement a custom widget according to the docs at https://github.com/StreamElements/widgets/blob/master/CustomCode.md.

So far accessing data in onSessionUpdate worked fine, e.g.

window.addEventListener('onSessionUpdate', function (obj) {
    obj.detail.session["subscriber-total"].count; // this is the number of Twitch subscribers
});

However, documented Facebook stats do not work that well

window.addEventListener('onSessionUpdate', function (obj) {
    obj.detail.session["supporter-monthl"]; // this is null or undefined
    obj.detail.session["supporter-monthl"].count; // consequently getting the count does not work
});

Anything I am doing wrong on my end? Is the documentation accurate?

As an aside, double-checking the docs I also noticed that both Twitch and Facebook followers are documented as

data["follower-month"]["count"] // Twitch
data["follower-month"]["count"] // Facebook

Is it at all possible counting stats for both services in the same overlay? What I am looking for is a widget that provides an aggregate score across streaming services.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions