刷新发布的 URL 中的元数据

发布于 2024-11-25 15:21:03 字数 208 浏览 1 评论 0原文

在 Facebook 中,当我发布链接 http://wisdomuniversity.org 时,Fascebook 包含旧元数据(标题、描述等)。 )。我最近添加了开放图谱协议元标记,但 Facebook 仍然使用旧的东西。 Facebook 如何刷新此元数据?我可以强制刷新吗?

In Facebook, when I post the link http://wisdomuniversity.org, Fascebook includes old metadata (Title, description, etc.). I recently added Open Graph Protocol meta tags, but Facebook still uses the old stuff. How does Facebook refresh this metadata and can I force a refresh?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

遗忘曾经 2024-12-02 15:21:03

您需要 ping facebook 并通知他们更新更改并执行此操作,您可以使用
URL Linter。 Facebook 可能需要一些时间才能更新您的更改。我不确定 ping 后他们需要多长时间才能更新,但请尝试一下。

编辑:这是来自 facebook 的官方消息:Open Graph 协议

编辑元标记

您可以通过更新页面的属性来更新页面的属性
标签。请注意,og:title 和 og:type 只能编辑
最初 - 当您的页面收到 50 个赞后,标题就会固定,
当你的页面收到 10,000 个赞后,类型就固定了。
这些属性是固定的,以避免让喜欢的用户感到惊讶
页面已经。在这些限制之后更改标题或类型标签
已到达 不执行任何操作,您的页面保留原始标题并且
类型。

为了使更改反映在 Facebook 上,您必须强制您的页面
被刮掉。当页面管理员点击时,页面会被抓取
“赞”按钮或在 Facebook URL 中输入 URL 时
短绒检查
。您可以通过编程强制您的页面被抓取
卷曲短绒。例如:

curl
> https://developers.facebook.com/tools/lint/?url={YOUR_URL}&format=json

You need to ping facebook and notify them to update changes and to do that you can use
URL Linter. It may take some time for facebook to update your changes. I'm not sure how much time they take to update after pinging, but just try it.

EDIT: This is officially from facebook: Open Graph protocol

Editing Meta Tags

You can update the attributes of your page by updating your page's
tags. Note that og:title and og:type are only editable
initially - after your page receives 50 likes the title becomes fixed,
and after your page receives 10,000 likes the type becomes fixed.
These properties are fixed to avoid surprising users who have liked
the page already. Changing the title or type tags after these limits
are reached does nothing, your page retains the original title and
type.

For the changes to be reflected on Facebook, you must force your page
to be scraped. The page is scraped when an admin for the page clicks
the Like button or when the URL is entered into the Facebook URL
Linter
. You can programmatically force your page to be scraped by
cURL'ing the linter. For example:

curl
> https://developers.facebook.com/tools/lint/?url={YOUR_URL}&format=json
久光 2024-12-02 15:21:03

使用 Facebook 调试器并检测与 og FB 元数据相关的问题,https://developers.facebook.com/tools /调试/。然后,如果 Facebook 说您的图像太小,请拉一个更大的图像并使用图像的奇数宽度,例如 300px、500px 等。似乎当 FB 找不到正确的图像大小、标题或描述时,趋势会抢占主站点元数据。

Use Facebook debbugger and detect the problems related to og FB metadata, https://developers.facebook.com/tools/debug/. Then, if Fb says your image is too small, pull a bigger image and use odd width for the image e.g. 300px, 500px etc. It seems when FB doesn't find the correct image size, title or description, trends to grab main site metadata.

堇色安年 2024-12-02 15:21:03

您可以更新开放图谱对象信息,但只需发送 CURL 请求,如下所示: https://developers.facebook.com/docs/sharing/opengraph/using-objects

POST https://graph.facebook.com/?id={object-instance-id or object-url}&scrape=true

我希望这有帮助......

You can update your Open Graph object information but just sending a CURL request, like documented here: https://developers.facebook.com/docs/sharing/opengraph/using-objects

POST https://graph.facebook.com/?id={object-instance-id or object-url}&scrape=true

I hope this helps...

滥情空心 2024-12-02 15:21:03

工具网址已更改为 https://developers.facebook.com/tools/debug。现在 GET 请求应发送至:https://developers.facebook.com/tools/debug/og/object?q={YOUR_URL}

如果您收到错误“解析输入 URL 时出错,未抓取任何数据。”尝试将以下标头添加到请求中:Referrer:https://developers.facebook.com

Tool URL has changed to https://developers.facebook.com/tools/debug. Now GET request should be sent to: https://developers.facebook.com/tools/debug/og/object?q={YOUR_URL}.

If you are getting an error "Error parsing input URL, no data was scraped." try to add following header to a request: Referrer: https://developers.facebook.com

你丑哭了我 2024-12-02 15:21:03

截至 2016 年底,以编程方式通知 Facebook 您的 URL 发生变化并让它再次抓取的方法是向此 URL 提交 POST:

https://graph.facebook.com/?id={YOUR_URL}&scrape=true

早期的方法(本页上提到的一些方法)已被弃用。 此处记录了此内容

Facebook 爬虫将重新抓取(并因此更新)对象:

  • 每 30 天在对象调试器中输入对象 URL 时
  • 第一次抓取之后当应用使用 API 触发抓取时
  • 端点 此 Graph API 端点只是对以下内容的调用:

POST /?id={object-instance-id 或 object-url}&scrape=true

来自此端点的响应将是一个 JSON 对象,其中包含所有
有关被抓取对象的信息(返回的相同数据
当从 Graph API 读取对象 ID 时)。

id 参数可以是对象的规范 URL,也可以是
图中对象实例的ID。

As of the end of 2016, the way to programmatically notify Facebook of changes in your URL and have it scrape it again is by submitting a POST to this URL:

https://graph.facebook.com/?id={YOUR_URL}&scrape=true

Earlier ways, some noted on this page, have been deprecated. This is documented here:

The Facebook crawler will re-scrape (and therefore update) objects:

  • When the object URL is input in the Object Debugger Every 30 days
  • after the first scrape When an app triggers a scrape using an API
  • endpoint This Graph API endpoint is simply a call to:

POST /?id={object-instance-id or object-url}&scrape=true

The response from this endpoint will be a JSON object that contains all the
information about the object that was scraped (the same data returned
when the Object ID is read from the Graph API).

The id parameter can be either the canonical URL of your object or the
ID of the object instance in the graph.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文