Twitter Follow widget without opening intent

拟墨画扇 提交于 2019-12-25 04:53:19

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!