分享文字/图像Twitter和Facebook上的机器人 [英] Share text/Image on twitter and facebook in android

查看:543
本文介绍了分享文字/图像Twitter和Facebook上的机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了我的新闻应用程序,现在我必须添加共享(脸谱/叽叽喳喳)选项共享图像和text.I搜索很多,但尚不清楚如何满足我的requirement.Actually上分享按钮我要显​​示的EditText和按钮,无论我们要分享点击分享按钮,这应该是shared.I已通过SDK和意图也走了,但工作不适合我requirement`

 字符串twitterUri =htt​​p://m.twitter.com/?status=;
        字符串marketUri =测试;
        意图shareOnTwitterIntent =新的意图(Intent.ACTION_VIEW,
                Uri.parse(twitterUri + marketUri));
        startActivity(shareOnTwitterIntent);.
 

解决方案

嘿,你可以从下面的链接,Facebook的图片上传获取帮助

<一个href="http://stackoverflow.com/questions/10629613/android-facebook-sdk-upload-pictures-to-wall-with-profile-in-different-language/10630222#10630222">Android Facebook的SDK,上传图片到墙上,在不同语言的资料?

和Twitter的,你需要上传的twitpic ......对,你必须使用的jar文件..因为你不能鸣叫的画面在Twitter上。

I have developed my news app and now i have to add share(facebook/twitter)option to share image and text.I have searched lot but not clear how to fulfill my requirement.Actually on share button i have to display edittext and button and whatever we have to share on clicking on share button that should be shared.I have gone through SDK and intent also but not working for my requirement`

String twitterUri = "http://m.twitter.com/?status=";
        String marketUri = "TESTING ";
        Intent shareOnTwitterIntent = new Intent(Intent.ACTION_VIEW,
                Uri.parse(twitterUri + marketUri));
        startActivity(shareOnTwitterIntent);.

解决方案

Hey you can get help from the below link for facebook image uploading

Android facebook SDK, upload pictures to wall with profile in different language?

and for Twitter you need to upload it in twitpic... for that you have to use jar file.. as you can't tweet picture in twitter.

这篇关于分享文字/图像Twitter和Facebook上的机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆