我的实例上推文预览不再有效

我的实例上推文预览不再有效

terraboss

(Markus)

2022 年9 月 12 日 07:58

1

Discourse 一段时间以来在显示 Twitter 链接预览时出现问题。我现在只收到错误消息。

你们似乎可以正常显示。为什么会这样!

我使用的是最新版本。可能是什么问题?

在 meta 上的示例:

twitter.com

Stefan Homburg

@SHomburg

++ EIL ++ Neuseeland, der härteste #NoCovid-Staat im Westen, beendet die "Pandemie": Impfpflicht und Maßnahmen entfallen. Jetzt ist Deutschland allein. 1/2

handelsblatt.com/dpa/wirtschaft…

7:04 AM - 12 Sep 2022

4.9K

1.7K

在我的实例上:

image756×486 73.6 KB

1 个赞

Twitter API – My Discourse API App for Tweet previews was suspended

sam

(Sam Saffron)

2022 年9 月 13 日 06:47

2

恐怕这不是一个错误。

过去,我们曾有一个“简单的”Twitter嵌入器,它依赖于某些魔法来生成onebox。这导致了过多的边缘情况,结果非常不均匀,而且经常出错。

如果任何自托管者希望将来使用Twitter嵌入,请遵循:

Configuring Twitter login and rich embeds for Discourse Integrations

This guide explains how to set up Twitter login and rich embeds for your Discourse forum.

Required user level: Administrator

In order for rich embeds to work properly, a Basic plan or higher for X Dev is mandatory. Rich embeds will not work with the Free X Dev plan.

X Configuration

Go to the Developer Portal on X.

Choose between a Free, Basic, or Pro X Dev plan and complete the developer agreement and policy requirements.

After completing …

所有由CDCK托管的用户都使用CDCK账户,因此他们无需担心配置此项。

2 个赞

terraboss

(Markus)

2022 年9 月 13 日 07:21

3

谢谢你,Sam

但正如我之前所说,这个功能曾经运行得非常好。链接已添加。预览已移除。

我不想将 Twitter 账户与我的实例关联。我也不想盲目地同意开发者合同并承诺使用 Twitter。我当然也不想使用 Twitter 作为登录方式。

1 个赞

sam

(Sam Saffron)

2022 年9 月 13 日 07:37

4

我明白你的意思,但这必须和 Twitter 沟通,他们没有给我们任何选择。通过 HTML 破解来获取信息太不稳定了。

2 个赞

terraboss

(Markus)

2022 年9 月 18 日 15:15

5

我讨厌这种胡说八道。

image1488×629 129 KB

更新:

我已按照说明完成所有设置并成功完成。

推文仍未显示。

只显示链接。

1 个赞

nbianca

(Bianca)

2022 年9 月 19 日 10:40

6

请确认您是否已设置 twitter consumer key 和 twitter consumer secret 站点设置,然后尝试重建 HTML(帖子菜单 → 重建 HTML 按钮)?

抱歉给您带来困扰,但请相信我,我已经尽力寻找解决方案。问题在于 Twitter 不再以有意义的方式提供信息供我们解析和显示。我们找到了获取大部分信息(例如用户名、消息、转推次数等)的解决方法,但找不到引用推文的解决方法,而引用推文是推文的重要组成部分。

2 个赞

terraboss

(Markus)

2022 年9 月 19 日 11:57

7

一切设置正确。

正如建议的那样,我也尝试重建了 HTML 视图。尽管如此,链接仍然没有显示为预览框。

过去我曾发布过的旧推文仍然显示着。(未重建 HTML)

1 个赞

nbianca

(Bianca)

2022 年9 月 19 日 18:24

8

我再次使用我的 Twitter 密钥进行了测试,并再次确认它有效。我所做的就是设置两个站点设置并重建 HTML。然后,URL 被渲染为一个 onebox。

您能否重建 Twitter API 密钥并重试?请确保不要混淆密钥和密码。

1 个赞

terraboss

(Markus)

2022 年9 月 19 日 19:57

9

您好,

我已经尽力了。API 密钥(消费者密钥)已续订。HTML 重建功能无效。一切都一样。

只显示了链接。

如果错误日志中有一些输出就太好了。

popstarfreas

2022 年9 月 21 日 18:58

10

我今天在尝试设置此功能时也遇到了同样的问题,最初是在搜索时偶然发现了这个主题,但没有立即在此主题中看到提及;在搜索了其他帖子后,对我来说,正如以下链接帖子中所说的那样(使用高级计划而不是默认的 Essentials 计划),尽管 Twitter 网站上的措辞是“审核您的应用程序”,但我的应用程序却立即获得批准,并且在那之后立即就能正常工作了。

Have some problems to configure embed Twitter Support

I’ve found it !

You need to escalate your developer Twitter account from Essential to Elevated (free).

And then it’s work like a charm.

Configuring Twitter login and rich embeds for Discourse Integrations

Ok, I think we were able to solve the mystery

As @Hifihedgehog pointed out, new Twitter developer accounts start out on the “Essential” plan and are limited to the v2 API endpoints. Our built-in Twitter login currently needs to access v1.1 endpoints. Thankfully that’s not a problem!

There are two important things to note on this chart at Twitter API | Products | Twitter Developer Platform

[Screen Shot 2022-02-07 at 6.31.20 PM]

You can gain access to the v1.1 API for free under t…

4 个赞

sam

(Sam Saffron)

2022 年9 月 21 日 23:29

11

非常感谢,我也和 @mcwumbly 讨论了这个问题。

希望我们能在管理员仪表板中添加一个警告,提醒用户他们错误地选择了 Essential 套餐,并解释问题所在。

3 个赞

terraboss

(Markus)

2022 年9 月 22 日 03:38

12

太棒了!它奏效了。

Have some problems to configure embed Twitter Support

I’ve found it !

You need to escalate your developer Twitter account from Essential to Elevated (free).

And then it’s work like a charm.

特别感谢 @popstarfreas

2 个赞

system

(system)

关闭

2022 年10 月 22 日 03:38

13

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

相关推荐

网卡卸载(Nic Offload)
网彩365平台下载

网卡卸载(Nic Offload)

📅 07-20 👁️ 6425
蘋果股票投資指南 2025
日博官网365bet

蘋果股票投資指南 2025

📅 12-31 👁️ 876
上海岱嘉医学信息系统有限公司工资待遇怎么样
日博官网365bet

上海岱嘉医学信息系统有限公司工资待遇怎么样

📅 10-24 👁️ 1535