<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>citrus_soda</author_name>
  <author_url>https://blog.hatena.ne.jp/citrus_soda/</author_url>
  <blog_title>megutech</blog_title>
  <blog_url>https://megu-tech.hatenablog.com/</blog_url>
  <categories>
    <anon>Twitter</anon>
    <anon>X</anon>
    <anon>Intent URL</anon>
  </categories>
  <description>WebからXへシェアする機能を実装したところ、Xアプリが起動 -&gt; アプリ内ブラウザ起動 -&gt; Safariへリダイレクト -&gt; Xアプリ起動という無限ループに陥った。 調査の結果、Intent URLのエンドポイントによって挙動が異なることが判明したので備忘録として残す。 環境 X (Twitter) モバイルアプリ (iOS/Android) 発生した問題 Webサイトにシェアボタンを実装し、/intent/post を使用したところ以下の無限ループが発生： Xアプリが起動 アプリ内ブラウザが起動 アプリ内ブラウザがデフォルトブラウザ(Safari)を開こうとする SafariがXアプリを…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmegu-tech.hatenablog.com%2Fentry%2F2025%2F11%2F21%2F150819&quot; title=&quot;X (Twitter) のIntent URL `/intent/tweet` vs `/intent/post` - megutech&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-11-21 15:08:19</published>
  <title>X (Twitter) のIntent URL `/intent/tweet` vs `/intent/post`</title>
  <type>rich</type>
  <url>https://megu-tech.hatenablog.com/entry/2025/11/21/150819</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
