PIC张贴在墙上的消息与Android的Facebook SDK 3.0 [英] Post pic on wall with message with Android Facebook SDK 3.0
问题描述
我怎样才能发布消息连同照片使用Facebook的SDK 3.0在Android上,
How can i post message along with Picture using Facebook SDK 3.0 on Android,
链接 - >选择:小图片与链接和所有其他信息
The link -> can post small pic with link and all other information.
http://developers.facebook.com/docs/howtos /androidsdk/3.0/feed-dialog/
我想要的,只是发布产品图上墙的消息,而不是一个与原文链接? 我想抓住屏幕截图我的,我没有,并将其保存到SD卡目前的Android画面,我需要张贴与自定义按钮点击消息。
What i want, is only to post Pic on wall with message, not a link with description ? I want grab screen shot of my current Android screen that i did and saved it into SD card, i need to post it with message on custom button click.
我怎样才能做到这一点与Facebook SDK 3.0的Android?
How can i do this with Facebook SDK 3.0 for android ?
推荐答案
您可以使用图形API来发布照片到用户的墙上。
You can use the Graph API to post photos to a user's wall.
请参见参考页更多细节。
在Facebook的SDK,您可以使用 Request类使图形API调用。
In the Facebook SDK, you would use the Request class to make Graph API calls.
您可以使用newUploadPhotoRequest方法来添加照片。
You can use the newUploadPhotoRequest method to add a photo.
如果你想添加说明,以及,尝试设置消息参数:
If you want to add a description as well, try setting the "message" parameter:
Request photoRequest = Request.newUploadPhotoRequest(...);
Bundle params = photoRequest.getParameters();
params.putString("message", "description goes here");
photoRequest.executeAsync();
这篇关于PIC张贴在墙上的消息与Android的Facebook SDK 3.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!