使用 Twitter 和帐户框架添加应用程序名称

发布于 2024-12-14 02:36:31 字数 323 浏览 6 评论 0原文

我正在 iOS 5 上开发一个小型 Twitter 应用程序。我正在使用 Twitter 和帐户框架,因此我使用 ACAccount 登录并使用 TWRequest 发送推文。

当我发送推文时,在其详细信息中,我看到“通过 iOS”。我可以(通过 Twitter API 或 iOS 框架)设置应用程序名称来查看类似“via MyApp”的内容吗?

我知道如果我使用我的应用程序消费者密钥等通过 OAuth 进行身份验证,则会自动设置,但情况并非如此,因为我通过 ACAccount 进行身份验证。

谢谢。

I'm developing a little Twitter application on iOS 5. I'm using Twitter and Accounts frameworks so I login in with an ACAccount and send tweets with TWRequest.

When I send a tweet, on its details, I see "via iOS". Can I set (via Twitter API or iOS frameworks) a name of application to see something like "via MyApp"?

I know that is automatically set if I authenticate via OAuth with my app consumer keys and so on, but this is not the case because I authenticate via ACAccount.

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我是有多爱你 2024-12-21 02:36:31

好的,我在 Twitter 开发文档中找到了答案

iOS 设备的某些应用程序名称会导致故障转移源归因于简单的“iOS”,而不是应用程序的正确名称。发生这种情况的原因通常是 Apple Store 中的应用程序名称长度超过了 Twitter 数据模型中允许的最大名称,或者与应用程序关联的 URL 无效。

如果您遇到此问题,请确保:
* 您正在使用已发布的应用程序。未发布的 iOS 应用程序和临时配置的 iOS 应用程序将不会使用自定义源标签。
* 您已向 Apple 提供了与您的申请相关的有效 URL
* 您的应用程序名称不与 Twitter 应用程序数据库中的名称重复。

如果您不想等待我们的错误修复:
* 您在 Apple 注册的应用程序名称少于 32 个字符,并且不与 Twitter 数据库中的应用程序名称重复。

https://dev.twitter.com/issues/39

Ok, I've found the answer, on the Twitter Dev Documentation

Some application names of iOS devices cause failover source attribution to simply "iOS" instead of the proper name of the application. This usually occurs because the application's name in the Apple Store is longer than the maximum allowed in Twitter's data model, or because an associated URL with the application is not valid.

If you run into this issue ensure that:
* You're using a published application. Unpublished iOS apps and ad-hoc provisioned iOS apps will not utilize custom source tags.
* You've provided a valid URL to Apple in association with your application
* Your application's name is not duplicative of a name in Twitter's application database.

If you don't want to wait for our bug fix:
* That your application's name as registered with Apple is shorter than 32 characters and is not duplicative of an application name in Twitter's database.

https://dev.twitter.com/issues/39

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文