gpt4 book ai didi

html - 通过 API 的 Facebook 帖子 - 包括 html、css 和外部图像?

转载 作者:太空宇宙 更新时间:2023-11-03 18:24:56 31 4
gpt4 key购买 nike

首先:我是设计师,不是开发人员。我真的不知道 php 或 JS,我知道 html 和 css。这并没有改变。

上下文:我正在为客户设计一个网站,一旦将其移交给开发团队,我将涉及使用 facebook API 以允许用户在他们的 facebook 墙上发布内容。我根本不熟悉 facebook API,也没有真正使用 facebook。但是,我需要知道这些东西的局限性,这样我才能真正设计出可以开发的东西。我试着查看 facebook API 文档,但这对我来说是胡言乱语,因为我不是开发人员。

我的实际问题:我知道可以添加文字,我知道至少可以添加一张主图来配合帖子。是否可以将任何自定义 html/css 添加到 facebook 帖子的内容中?具体来说,客户要求在网站上为 facebook 帖子提供星级系统(这需要来自网站的自定义 html、css 和图像),但是在使用 facebook 共享按钮/iframe 之后,我怀疑 facebook 是否允许这种类型的事情.

如果您不介意发布一个长答案:是否可以控制帖子的外观,是否全部由 Facebook 设置?图片大小、内容位置等。或者这只是另一个插入 iframe(可能有一些变量)并且 facebook 对 iframe 中的内容有 100% 的控制权?

最佳答案

不,您无法使用 Facebook Graph API 控制帖子的外观。发帖只支持以下字段:

  • message: The main body of the post, otherwise called the status message. Either link or message must be supplied.
  • link: The URL of a link to attach to the post. Either link or message must be supplied.
  • actions: The action links attached to the post.
  • place: Page ID of a location associated with this post.
  • tags: Comma-separated list of user IDs of people tagged in this post.
  • privacy: Determines the privacy settings of the post.
  • object_attachment: Facebook ID for an existing picture in the person's photo albums to use as the thumbnail image.

来源:Graph API User Feed Reference .

如您所见,没有用于自定义帖子设计/模板的字段。简而言之,您使用 Graph API 发布的内容看起来就像您使用 Facebook GUI 发布的典型帖子。

关于html - 通过 API 的 Facebook 帖子 - 包括 html、css 和外部图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21005628/

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