问题
I want to use the twitter "follow-button" widget, but, instead of opening an intent everytime a user clicks on it to view the targetted user, i want it to follow the targetted user directly without opening the intent. Is that possible? If so, how?
回答1:
Have you tried this one? https://dev.twitter.com/web/follow-button
The user interaction flow for the Follow Button was designed to be as streamlined as possible and easy to use for developers, website owners and users. There are two simple Follow Button flows, depending on the user’s current state:
Signed in to twitter.com: When clicking the Follow Button, the user will instantly be following the target user.
Not signed in to twitter.com: This will open the Intent box and prompt the user to sign in to twitter.com.
来源:https://stackoverflow.com/questions/27512695/twitter-follow-widget-without-opening-intent