机器人:发送Facebook发布与自定义操作 [英] android: send a facebook post with custom actions
本文介绍了机器人:发送Facebook发布与自定义操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要与自定义操作是等,评论链接旁边出现一个超链接发送给Facebook的帖子。
I want to send a facebook post with a custom action which is a hyper link to appear beside the like and comment links.
如何才能做到这一点?
感谢
推荐答案
您应该加上行为的请求参数:
You should add "actions" to the request parameters:
JSONStringer actions;
try {
actions = new JSONStringer().object()
.key("name").value("Click me!")
.key("link").value("http://stackoverflow.com/").endObject();
params.putString("actions", actions.toString());
} catch (JSONException e) {
e.printStackTrace();
}
这篇关于机器人:发送Facebook发布与自定义操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文