Thanks for the reply, it seems I have already found it. I’ve replaced the build in buttons with the official code from Twitter/Facebook etc and now the events are coming through.
Nice plugin!
After comparing two var_dumps one of a user with the ‘author’ role and one of a user with my custom role I noticed a big difference. So I figured there was something wrong with my function. Since it only contained the add_role function I read the documentation once more.
Seems like I missed the part where it said that calling add_role would not update an existing role. Adding remove_role before add_role fixed it.