0

Now I got the Sharekit 2.0 for Facebook and twitter features.

I could share text (facebook and twitter) with the SharKit 2.0.

But I don't know how to implement the "follow us" feature in the twitter.

I found the "SHKTwitter" class's "followMe" function, but I haven't amy references about it.

Please help me.

4

1 回答 1

0

- (void)followMe; 仅当您的应用程序使用 xAuth 作为 iOS5 前 Twitter 的身份验证方法SHKTwitter时,才能使用类中的方法。有关xAuth身份验证方法的一些信息在DefaultSHKConfigurator.m文件中。

默认情况下,该方法不用于OAuth身份验证方法,这是您最可能使用的方法。

编辑:

如果您在 SHKConfigurator.m 中指定遵循的 twitterUsername ,它也可能与OAuth一起使用。

该方法可以在用户验证后调用,最方便的是在发送期间 - 所以为了能够调用它,你应该继承 SHKTwitter 并覆盖发送方法来调用[self followMe];

我自己没有尝试过,这只是一个想法。

也许值得直接在 ShareKit 中实现它也适用于 OAuth 使用共享器特定指令......

于 2012-05-16T19:09:19.550 回答