Is the unfollow JavaScript Twitter post similar to the following event or a way to do this?

I want to create a custom follow / unfollow button. When a user clicks my button, I get a standard Twitter popup. Then, when they click the follow button in this window, I have the following JavaScript event to change the button on my page:

twttr.events.bind('follow', function(event) { // change button }); 

But what should I do if the user clicks the unfollow button in the popup? There doesn't seem to be a twitter JavaScript website for this (https://dev.twitter.com/docs/intents/events).

+4
source share
1 answer
 twttr.events.bind('unfollow', function(event) 
+2
source

Source: https://habr.com/ru/post/1403518/


All Articles