如何通过[我的应用程序]在Android应用程序中分享内容到流行的社交网络时添加共享?

如何通过[我的应用程序]在Android应用程序中分享内容到流行的社交网络时添加共享?

问题描述:

我的Android应用程序允许用户从各种博客中阅读完整的文章,并使用Android的内置发送操作分享帖子:

My Android application allows users to read full articles from various blogs and share the posts using Android's in-built sent action:

Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);

当我分享文章时,Twitter表示它通过Twitter分享给Android,Facebook只有一个没有共享通的RSS图标。

When I share an article, Twitter indicates it is shared via Twitter for Android, and Facebook simply has an RSS icon with no "shared via" at all.

在这些社交网络的共享通路旁边显示我的应用程序标题的过程是什么? p>

What is the procedure of getting my app's title to appear next to "Shared via" for those social networks?

使用Twitter,您需要直接通过自己的应用程序进行共享,您用来共享的API密钥与共享通链接。如果您通过Twitter的官方应用程序或TweetDeck之类的其他Twitter应用程序进行共享,则通过共享通连接将分发给他们的应用程序,因为文章是通过其api密钥共享的。有关于如何自己实现twitter api的图书馆和教程。

With Twitter you'd need to do the sharing directly through your own application, the API key you use to share with is associated with the 'shared via' link. If you share through another twitter application like Twitter's official app or TweetDeck then the 'share via' link will be to their app as the article was shared using their api key. There are libraries and tutorial on how to implement twitter api yourself.