<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LINE |</title>
	<atom:link href="https://breakcontinue.net/archives/category/line/feed" rel="self" type="application/rss+xml" />
	<link>https://breakcontinue.net</link>
	<description></description>
	<lastBuildDate>Sat, 29 Jun 2019 02:03:39 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>

<image>
	<url>https://breakcontinue.net/wp-content/uploads/2019/08/bc15-75x75.png</url>
	<title>LINE |</title>
	<link>https://breakcontinue.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>webページにOGPを取り付ける</title>
		<link>https://breakcontinue.net/archives/81</link>
		
		<dc:creator><![CDATA[master]]></dc:creator>
		<pubDate>Wed, 19 Jun 2019 07:28:06 +0000</pubDate>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[LINE]]></category>
		<category><![CDATA[OGP]]></category>
		<category><![CDATA[Twitter]]></category>
		<guid isPermaLink="false">http://breakcontinue.net/?p=81</guid>

					<description><![CDATA[<p>OGPとは、「Open Graph Protcol」の略で、Webページに設定することでをFacebookやTwitterやLINEなどのSNSでリンクした時に、そのWEBページのタイトルや画像などをかっこよく表示させる [&#8230;]</p>
<p>The post <a href="https://breakcontinue.net/archives/81">webページにOGPを取り付ける</a> first appeared on <a href="https://breakcontinue.net"></a>.</p>]]></description>
										<content:encoded><![CDATA[<p>OGPとは、「Open Graph Protcol」の略で、Webページに設定することでをFacebookやTwitterやLINEなどのSNSでリンクした時に、そのWEBページのタイトルや画像などをかっこよく表示させる仕組みです。</p>



<p>サンプルコードを以下に示します。</p>



<pre class="wp-block-code"><code>&lt;head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#">
　　　　・・・
	&lt;meta property="og:site_name" content="BCタロット">
	&lt;meta property="og:title" content="愚者[逆位置]">
	&lt;meta property="og:type" content="article">       
	&lt;meta property="og:url" content="http://xxxxx.net/yyyyy.html">
	&lt;meta property="og:image" content="http://xxxxx.net/yyyyy.jpg">
	&lt;meta property="og:locale" content="ja_JP">
	&lt;meta property="og:description" content="成熟、無計画、不安定、愚か、心配、放浪者の悪い面、意味のない行動、コロコロと変わる気分、軽率な行動、無謀な計画や願望、非現実的な考え、行動が気まぐれ、失敗や偏見、計画が必要、用心深すぎる、本能とつながらない" />
	&lt;meta property="fb:app_id"      content="xxxxxxxxx" />
	&lt;meta name="twitter:card" content="summary" />
&lt;/head></code></pre>



<p>LINEでシェアすると以下のように表示されます。</p>



<figure class="wp-block-image sen"><img fetchpriority="high" decoding="async" width="1063" height="416" src="https://i1.wp.com/breakcontinue.net/wp-content/uploads/2019/06/Screenshot_20190616-101402-2.jpg?fit=1024%2C401" alt="" class="wp-image-104" srcset="https://breakcontinue.net/wp-content/uploads/2019/06/Screenshot_20190616-101402-2.jpg 1063w, https://breakcontinue.net/wp-content/uploads/2019/06/Screenshot_20190616-101402-2-300x117.jpg 300w, https://breakcontinue.net/wp-content/uploads/2019/06/Screenshot_20190616-101402-2-768x301.jpg 768w, https://breakcontinue.net/wp-content/uploads/2019/06/Screenshot_20190616-101402-2-1024x401.jpg 1024w" sizes="(max-width: 1063px) 100vw, 1063px" /></figure>



<p>facebook でシェアすると以下のように表示されます。 </p>



<figure class="wp-block-image sen"><img decoding="async" width="1061" height="941" src="https://i1.wp.com/breakcontinue.net/wp-content/uploads/2019/06/Screenshot_20190616-101505-2.jpg?fit=1024%2C908" alt="" class="wp-image-105" srcset="https://breakcontinue.net/wp-content/uploads/2019/06/Screenshot_20190616-101505-2.jpg 1061w, https://breakcontinue.net/wp-content/uploads/2019/06/Screenshot_20190616-101505-2-300x266.jpg 300w, https://breakcontinue.net/wp-content/uploads/2019/06/Screenshot_20190616-101505-2-768x681.jpg 768w, https://breakcontinue.net/wp-content/uploads/2019/06/Screenshot_20190616-101505-2-1024x908.jpg 1024w" sizes="(max-width: 1061px) 100vw, 1061px" /><figcaption>Facebookの場合このようになります</figcaption></figure>



<p>Twitter でシェアすると以下のように表示されます。  </p>



<figure class="wp-block-image sen"><img decoding="async" width="1043" height="683" src="https://i0.wp.com/breakcontinue.net/wp-content/uploads/2019/06/Screenshot_20190616-101601-2-1.jpg?fit=1024%2C671" alt="" class="wp-image-107" srcset="https://breakcontinue.net/wp-content/uploads/2019/06/Screenshot_20190616-101601-2-1.jpg 1043w, https://breakcontinue.net/wp-content/uploads/2019/06/Screenshot_20190616-101601-2-1-300x196.jpg 300w, https://breakcontinue.net/wp-content/uploads/2019/06/Screenshot_20190616-101601-2-1-768x503.jpg 768w, https://breakcontinue.net/wp-content/uploads/2019/06/Screenshot_20190616-101601-2-1-1024x671.jpg 1024w" sizes="(max-width: 1043px) 100vw, 1043px" /><figcaption>Twitterの場合このようになります<br></figcaption></figure>



<p>&lt;meta property="fb:app_id"　content="xxxxxxxxxx" /&gt;　はFacebookに連携する場合に必要なIDとなります。 <a href="https://developers.facebook.com/" target="_blank" rel="noreferrer noopener" aria-label=" (新しいタブで開く)">facebook for developpers(https://developers.facebook.com/</a>) のマイアプリから作成できます。</p>



<p>&lt;meta name="twitter:card" content="summary" /&gt;　はTwitterでの表示のスタイルの指定になります。4種類あります。 </p>



<ul class="wp-block-list"><li>小さい画像（ content="summary" ）  </li><li>大きい画像  （  content=" summary_large_image” ）</li><li>アプリ （  content="app”）</li><li> 動画 </li></ul>



<p>Facebookでの表示をシュミレーターで確認する方法は、『<a href="http://breakcontinue.net/2019/06/19/post-91/" target="_blank" rel="noreferrer noopener" aria-label=" (新しいタブで開く)">OGPのFacebookでの表示を確認する方法</a>』にあります。</p>



<p></p><p>The post <a href="https://breakcontinue.net/archives/81">webページにOGPを取り付ける</a> first appeared on <a href="https://breakcontinue.net"></a>.</p>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
