gpt4 book ai didi

java - 在带有网站链接的 Facebook 墙报下方添加 "Get [app name]"

转载 作者:搜寻专家 更新时间:2023-11-01 08:15:55 24 4
gpt4 key购买 nike

我制作了一个 Android 应用程序,可以将您当前的位置写入您的墙上。

当我查看其他 Facebook 应用程序时,我可以在帖子下方看到一个小链接,上面写着“获取 [应用程序名称]”。

我的意思是这样的:

enter image description here

如何在我的帖子中添加这样的链接?

最佳答案

使用“ Action ”参数。请参阅此处的帖子文档:http://developers.facebook.com/docs/reference/api/post

actions
A list of available actions on the post (including commenting, liking, and an optional app-specified action). read_stream. A list of JSON objects containing the 'name' and 'link'.

actions={"name": "View on Zombo", "link": "http://www.zombo.com"}

关于java - 在带有网站链接的 Facebook 墙报下方添加 "Get [app name]",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4992009/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com