如何添加“动作”通过 URL 发布到 feed 时?
我可以使用我的应用程序中的 URL 发布到用户提要,例如:
https://graph.facebook.com/USER_ID/feed?
link=https://developers.facebook.com/docs/reference/dialogs/&
picture=http://fbrell.com/f8.jpg&
name=Facebook%20Dialogs&
caption=Reference%20Documentation&
description=Using%20Dialogs%20to%20interact%20with%20users.&
message=Facebook%20Dialogs%20are%20so%20easy!
根据此处的文档: https://developers.facebook.com/docs/reference/dialogs/feed/ 可以添加出现在赞和<旁边的“操作”每个帖子下方的 em>评论 按钮。文档规定操作必须采用 JSON 格式,且对象的键为 name 和 link。我如何将其添加到上面的 URL 中?
I am able to post to a users feed using a URL from my app, for example:
https://graph.facebook.com/USER_ID/feed?
link=https://developers.facebook.com/docs/reference/dialogs/&
picture=http://fbrell.com/f8.jpg&
name=Facebook%20Dialogs&
caption=Reference%20Documentation&
description=Using%20Dialogs%20to%20interact%20with%20users.&
message=Facebook%20Dialogs%20are%20so%20easy!
According to the documentation here: https://developers.facebook.com/docs/reference/dialogs/feed/ it is possible to add "actions" which appear next to the Like and Comment buttons under each post. The documentation states the actions must be in a JSON format with object with keys name and link. How would I add this to the URL above?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,你可以添加 actions 参数。如果在 PHP 中,那么你可以这样做:
你的意思是这样的吗?
希望有帮助
Well, you could add actions parameter. If in PHP then you could do like:
Did you mean something like that.
Hope it helps