<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>subaru-hello</author_name>
  <author_url>https://blog.hatena.ne.jp/subaru-hello/</author_url>
  <blog_title>subaru-hello’s blog</blog_title>
  <blog_url>https://subaru-hello.hateblo.jp/</blog_url>
  <categories>
    <anon>Rails</anon>
    <anon>個人開発</anon>
  </categories>
  <description>こんにちは。スバルです。 今回はTwitterシェア機能に関して学習していきます。 診断系のアプリで欠かせないのはやっぱり結果をシェアする機能ですよね。 ユーザーに結果を共有して欲しいですし、大喜利みたいにつぶやいて欲しい。 どうやらTwitterや Facebookでシェアをする機能があるみたいです。 この前作ったアプリで実装してみました。 完成図 実装 まず、下記コードを、シェアリンクを追加したい場所に書いてください。 &lt;%= link_to 'Twitter', &quot;[&lt;https://twitter.com/share?url=#{request.url}&gt;](&lt;https://twit…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsubaru-hello.hateblo.jp%2Fentry%2F2021%2F09%2F02%2F224859&quot; title=&quot;RailsアプリをTwitterでシェアする方法 - subaru-hello’s blog&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>https://cdn.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-09-02 22:48:59</published>
  <title>RailsアプリをTwitterでシェアする方法</title>
  <type>rich</type>
  <url>https://subaru-hello.hateblo.jp/entry/2021/09/02/224859</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
