機能: Threadsのテキスト共有用Web Intent URLの対応

centralized/Meta/Threads

前回: 機能: Threadsの音声投稿のActivityPub暫定対応 | GNU social JP Web

前回に続くThreadsの機能更新です。「アプリ: Threadsの最初のサードパーティーWebアプリ?Thread Managerの開発開始 | GNU social JP Web」での告知投稿に対する返信が発端で、Threadsの投稿画面にテキストが入力された状態で表示される、テキスト共有用URLに対応したようです。

Post by @cdevroe
2024-01-23T13:21:02.000Z
Good morning! I’m the Product Manager for a WordPress plugin called Hubbub that allows people to share blog posts, etc. on social networks. I’m eager to see the Threads API of course. I’m just as eager for a way to construct a URL to the web interface using a link. On mobile there is ‘barcelona:’, but for desktop is there a way to create a link that would begin the composition of a post w/ some content?e.g. threads.net/post…
View on Threads
Post by @0xjessel
2024-01-25T23:42:57.000Z
great timing, we’ve heard a lot of feedback recently for more ways to share to Threads easily. in addition to the upcoming API, we created a new endpoint that now allows 3p apps/websites to use a dynamic URL to prefill text into our threads composer. this will enable developers to build social plugins for Threads!the route is `/intent/post?text={…}`, with the text param being the URL-encoded string you want to prefill.🧵 (1/2)
View on Threads
Post by @0xjessel
2024-01-25T23:43:01.000Z
(2/2) here’s an example URL: threads.net/inten…try tapping on this on web or mobile to see how it works. we can easily extend these web intents to other actions in the future, like ‘follow profile’ or ‘like a post’. let us know if you think we should.excited to see how people use it!
View on Threads

あるユーザーがhttps://www.threads.net/post?body=stuffhereの形式でのテキスト共有を提案したところ、他にも複数のユーザーから提案があったようで、実装されたようです。

具体的には/intent/post?text=の形式のURLです。text=以後にはURLエンコードされた文字列を指定します。

例えば、https://www.threads.net/intent/post?text=testのURLにアクセスすると、以下の画像のように投稿画面に [test] が入力された画面をいきなり開けます。

今後、これらのWeb Intentで、プロフィールのフォロー、投稿へのいいねなど、他のアクションを簡単に拡張可能とのことです。ユーザーの要望を見て、段階的に対応するようです。

X/TwitterやMastodonなどにも同様の機能があります。APIが使えない場合など、投稿などの手動操作が楽になります。覚えておくとよいでしょう。

Comments

  1. This Article was mentioned on web.gnusocial.jp

  2. This Article was mentioned on web.gnusocial.jp

Ads Blocker Image Powered by Code Help Pro

広告ブロッカー検知/Ads Blocker Detected

このサイトは会費と広告で運営されています。[Bronze=月220円以上に登録] するか、広告ブロッカーを無効にしてください。

This site is operated by membership and advertise. Please [register at least Bronze=220 JPY/month], or disable ads blocker.

Copied title and URL