headå ã®metaã«è¨è¿°ããTwitterã«ã¼ããFacebookã®OGPã®ã³ã¼ããGoogleãªã©ã®æ¤ç´¢ã¨ã³ã¸ã³ç¨ã®ã³ã¼ãã確èªã»çæã§ãããªã³ã©ã¤ã³ãµã¼ãã¹ãç´¹ä»ãã¾ãã
ããã«ã¡ã¯ãã¦ã§ãæ å½ã®å¶ã§ãã2015å¹´ãã©ãããããããé¡ããããã¾ãã ãã¦ã以åãOGPãè¨å®ãã¦ãFacebookã§ã·ã§ã¢ããæã®ç»åã大ãã表示ãããæ¹æ³ãã¨ããã¨ã³ããªã¼ã§Facebookã§ã·ã§ã¢ããæã«è¡¨ç¤ºãããç»åã®ä»¶ãåãä¸ãã¾ããããã®å¾Facebookã®ä»æ§ãå¤æ´ãããç»åã®åãæ±ããå¤ããã¾ããã®ã§æ¹ãã¦æ´çãã¦ã¿ããã¨æãã¾ãããã¼ã¯ã¼ãã¯ã1200px à 630pxããããã¦ãPNGãã§ãã 以åãç´¹ä»ããå 容ã®ãããã 以åã®ã¨ã³ããªã¼ã§ãç´¹ä»ããç©ãç°¡åã«ããããããã¨ãä¸è¨ã®ããã«ãªãã¾ãã æ¨å¥¨ã¯ã1200px à 630pxãï¼ç¸¦æ¨ªæ¯ 1.91:1ï¼ æä½ã§ãã600px à 315pxã ç¹å®ã®æ¡ä»¶ã§ç»åã®ä¸å¿é¨åãæ£æ¹å½¢ã«ããªãã³ã°ããã ç¹ã«æå¾ã®ãæ£æ¹å½¢ã«ããªãã³ã°ãã¯PCç¨ãã¼ã¸ã®ã¿ã¤ã ã©ã¤ã³ã®ã¿é©ç¨ãããã¨ããæ²è ã§ã対çã¨ãã¦ä¸è¨ã®ã
ãã©ã°ã¤ã³ã使ããã«è¨å® OGPã¡ã¿ã¿ã°ã追å ããå°ç¨ã®ãã©ã°ã¤ã³ãå©ç¨ããã«ãHTMLã®headé åã«ã¡ã¿ã¿ã°ãåºåããã³ã¼ããfunctions.phpã«è¿½å ããæ¹æ³ã§OGPã«å¯¾å¿ãã¾ãã ããæ¹ functions.phpã®å ´æ WordPressã§è¨å®ä¸ã®ãã¼ãå ã«functions.phpãé ç½®ããã¦ãã¾ããå ¬å¼ãã¼ãtwentythirteenã®å ´åã¯ã wp-content/themes/twentythirteen/functions.php ã«é ç½®ããã¦ãã¾ãã ã³ããããã³ã¼ã functions.phpã®æå¾ã«ä¸ã®PHPã³ã¼ããã³ãã¼ãã¦è¿½å ãã¾ãã function add_ogp() { // å¤æ°ã®è¨å® $site_name = get_bloginfo('name'); $permalink = esc_url((empty($_SERVER["HTTPS"]
ããã°ã¸ã®Facebook&Twitterã®OGPã¿ã°è¨ç½®ã¯ããã¾ãå¿ é ã¨ãªã£ã¦ãã¾ããã¨ããã調ã¹ã¦ã¿ãã¨ããªãããOGPå°ç¨ãã©ã°ã¤ã³è¨ç½®ã§ãµã¯ãã¨å®äºã¨ã¯ãããªãããã§ãã å©ç¨ãã¦ãããã¼ããOGPã¿ã°è¨ç½®ã«å¯¾å¿ãã¦ããªããã°ãèªåã§ãã¼ããç·¨éãã¦ãã¾ãã®ããä¸çªç¢ºå®ã§ãã ä½æ¥å 容ã¯ããã®éãã§ãã OGPã¿ã°ãè¨ç½®ããçç±ãç解ãã header.phpãç·¨éãã Facebookã®app_idãåå¾ãã functions.phpã«ã³ã¼ãã追è¨ãã twittercardãç³è«ãã Facebook Debugerã§ç¢ºèªãã ã§ã¯ãé çªã«èª¬æãã¾ãã 0.ãªããOGPã¿ã°ãè¨ç½®ããå¿ è¦ãããã®ãï¼ ãºããªãFacebookã¨Twitterããããã°ã¸ã®ã¢ã¯ã»ã¹æµå ¥ãå¢ããããã§ãã OGPã¿ã°ãè¨ç½®ããã¨ãè¨äºãã·ã§ã¢ãããæã«ããã£ããç»åã¨æ¦è¦æä»ãã§è¡¨ç¤ºããã人ã®ç®ã
OGPç»åã·ãã¥ã¬ã¼ã¿ã¨ã¯ï¼ Facebookã®OGPç»åã¯æ£æ¹å½¢ã§è¡¨ç¤ºãããã横é·ã§è¡¨ç¤ºããããããããããã¶ã¤ã³ãã¨ã¦ã大å¤ã ãããªæã«ä¾¿å©ãªã®ããã®OGPç»åã·ãã¥ã¬ã¼ã¿ã ãã¶ã¤ã³ããOGPç»åããã©ãã°&ããããããã¿ã¤ã ã©ã¤ã³ä¸ã§ã©ãè¦ãããã·ãã¥ã¬ã¼ããã¦ã¿ã¾ãããã https://ogimage.tsmallfield.com/ 1200 x 630 px 以ä¸æ¨å¥¨ https://developers.facebook.com/docs/opengraph/creating-object-types/#properties æä½ã§ã 600 x 315 pxãã¾ã大ãããã°å¤§ããã»ã©è¯ããã 1200 x 630 px 以ä¸ã®ç»åãµã¤ãºãæ¨å¥¨ããã¦ãã¾ããç»åãã¯ãªããã³ã°ãããã®ãé²ãããã縦横æ¯ããªãã¹ã1.91:1ã«è¿ã¥ããããã«ãã¾ãããã ï¼2014å¹´01æ
webmobileã¯ãã¿ããªãç¥ãããã¹ããã»éä¿¡ã¬ã¸ã§ããã®ä½¿ãæ¹ãçºä¿¡ãã¦ããã¬ãã¥ã¼ãµã¤ãã ã⪠webmobileï¼ã¦ã§ãã¢ãã¤ã«ï¼ã¯ã大好ããªPixel/iPhone/MVNO/amazonã«ã¤ãã¦ãæ°ã¥ãããã¨ã»å°ã£ãäºã®è§£æ±ºãªã©çµé¨ãããã¨ãçºä¿¡ãã¦ãã¾ãã éå¶æ´ã¯ãããã10年以ä¸ã§ãã ç§ãåãã¦è²·ã£ãã¹ãã¼ããã©ã³ã¯ãauããçºå£²ãããSHARP製IS03ãä»ã§ããã¶ã¤ã³ã®è¯ãã«æéãåãã¾ãã ä»ã®ã¡ã¤ã³æ©ã¯GooglePixelã¨iPhone15ProMAXã§ãã æã¯ASUS製ZenFoneã«ã¯ã¾ããæ°è£½åãçºå£²ããããã¨ã«è²·ã£ã¦ãã¾ããã MVNOã®ãåºã«æãåã¨è¨ªããæ ã楽ããã£ããªã⪠ãç¸ãã£ã¦ãUQã³ãã¥ãã±ã¼ã·ã§ã³ãºæ¬ç¤¾ã«è¡ããã¨ãããã¾ããã UQã¢ãã¤ã«å ¬å¼ã°ããºãããããæã«å ¥ããæ©ä¼ãããã¾ããã æ±äº¬æ°å®¿ã«ããLINEæ ªå¼ä¼ç¤¾ã«æå¾ ãã¦è²°ã£
ãã¼ã ããã° ãµã¤ãå¶ä½ ã¦ãããã¹ãã³ãã¢ãµã¤ããªãã¥ï¼æ°ã¹ãã³é å¸éå§ ãCMSkin for ã¦ãããããã¢ã¨ãã¦ç¨¼åãã¦ãããµã¤ãããªãã¥ã¼ã¢ã«ãã¦èªä½ã¹ãã³å ¨è¬ãè¦ãããããã«ãã¦ã¿ã¾ãããåããã§ã¯å èµ°ã£ã¦7æã®éã«ãªãã¥ã¼ã¢ã«ã®ãç¥ããããã¦ãããã§ããããããä¿®æ£ããããã¦ãã¦ä¸æ®µè½ã¤ããããªã¨ãããã¨ã§ãã¡ãã§ããç¥ããã§ããæ°ãããªã£ããã¢ãµã¤ãã¦ãã·ããããããããé¡ããããã¾ãã CMSkinã¨ãã¦ã¯CSSãJSã®ã³ã¼ãããã©ãã·ã¥ã¢ããï¼å½ç¤¾æ¯ï¼ãããæ°ããç¬èªè£ 飾ãã¶ã¤ã³ãæ©è½ãçãè¾¼ãã ã¤ããã§ããä»å¾ã¯ãããããã¨ã«æ°ã¹ãã³ãä½ã£ã¦ããäºå®ã§ããã¾ããããããããã¼ãã»å°æã¨ãã¦è§£èª¬è¨äºãä½ã£ã¦ããã¤ããã§ãã ã¨ããããã§ã¦ãããã¹ãã³ããã¹ãã¤ãããã®é å¸ãéå§ãã¾ãããåä½ç¢ºèªã¯å ¥å¿µã«ããã¤ããã§ãããããããä¸äººä½æ¥ãªã®ã§è¦è½ã¨ãããããããã¾ãã
ã¿ãªãããããã«ã¡ã¯ ãå æ°ã§ããï¼åã¯å æ°ã§ãã ã㦠æè¿ãããããããï¼ããã¿ã³ãããã¯ã·ã£ãã§ãã¯ããã¿ã³ã«ãã£ã¦ãã¦ã§ããã¼ã¸ãç´¹ä»ãåãæåãå°ããã¤å®çãã¦ãããªã¼ã¨æãã¾ãã ãããªä¸ã§ãä»å¾éè¦ã«ãªã£ã¦ããããããªããã¨æããã OGP ï¼Open Graph Protocolï¼ã¨è¨ãããä»æ§ãããã¾ããä»æ¥ã¯ãã®ãã¨ã«ã¤ãã¦æ¸ãã¦ã¿ããã¨æãã¾ãã OGP? ãã¼ãã¼ã´ã¼ï¼ï¼ã¨ã¯ãªãã§ããããã OGP ã¨ã¯ ç°¡åã«è¨ãã¨ããã®ã¦ã§ããã¼ã¸ã¯ä½ã®ãã¨ãæ¸ãã¦ããããã¨ããæ å ±ããããã°ã©ã ããèªãã形㧠HTML ã«ä»å ããè¨è¿°æ¹æ³ã®ãã¨ã§ãã ã¾ããæ®éã®ã¦ã§ããã¼ã¸ã¯äººéãèªãã°ã ãããä½ã®ãã¨ãæ¸ãã¦ãããåããã¾ãããã ã§ãããããã°ã©ã ã¯äººéã»ã©é ãè¯ããªãã®ã§ããã®ã¦ã§ããã¼ã¸å ã®æç« ã ãã§ã¯ãã®ãã¼ã¸ãä½ã®ãã¨ã«ã¤ãã¦æ¸ããã¦ãããã¼ã¸ãªã®ãæ£ç¢ºã«èå¥ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}