Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不知道如何实现 twitter followMe 功能。
我找到了 SHKTwitter 的 followMe 功能,但我没有任何关于它的参考信息。
请告诉我或发送一些样品。
如果您查看源代码,您会发现它基本上是在发出 Twitter API 请求,以将“SHKTwitterUsername” (SHKConfig.h) 中定义的帐户添加到用户的朋友列表中(follows)。
因此,如果您有一个 Twitter 帐户用于向您的应用程序用户发送推文,您可以在您的应用程序中添加一个名为 [SHKTwitter followme] 的关注按钮,并将 SHKTwitterUsername 配置为您的 Twitter 句柄。
希望这可以帮助!