
內容簡介
WP-jTweets 是一款小工具,能顯示用戶在 X(前身為 Twitter)的最新貼文。用戶可選擇顯示的貼文數量及顯示時間,並可透過 CSS 自訂外觀。
【主要功能】
• 顯示用戶最新的 X 貼文
• 支援逐一淡入淡出顯示效果
• 可自訂顯示的貼文數量與時間
• 需要 X 開發者帳號及 API 計畫
• 可選擇顯示用戶頭像
外掛標籤
開發者團隊
原文外掛簡介
A widget that shows a user’s recent posts from X (formerly Twitter). It can fade the posts in and out one at a time using the jQuery that ships with WordPress, or simply list them. You choose how many posts to show and how long each stays. It is simple, but if you know CSS you can make it look very nice.
Important: reading posts requires an X developer account and an X API plan that allows reading posts. X controls which plans include this and what they cost. See https://docs.x.com/ for current details.
Getting a Bearer Token
Sign in to the X developer portal.
Create a project and an app, on a plan that allows reading posts.
Open the app’s “Keys and tokens” tab and generate a Bearer Token.
Paste it into the widget’s “X API Bearer Token” field.
External services
This plugin connects to the X API (https://api.x.com/2/) to retrieve the recent posts, display name and avatar of the X user you enter in the widget. This is needed to show the feed.
Each time the feed is not already cached (results are cached for 30 minutes, the user lookup for one day) your server sends: the X username you entered, the number of posts requested and your own Bearer Token (as the Authorization header, to authenticate your app). No data about your site’s visitors is sent. Your server’s IP address is visible to X as part of the normal request.
The service is provided by X Corp.: Developer Agreement and Policy, Terms of Service and Privacy Policy.
The avatar image, if you enable “Show avatar / user”, is loaded by your visitors’ browsers from X’s image servers (pbs.twimg.com).
