wordpress分享至FB無法正常顯示縮圖

  • A+
所屬分類:經營管理者雜記

今天想要把網站分享至FB時,才發現臉書抓不到正確的圖片,上網爬文試了很多次之後才能順利調整到想要的形式。分享一下,解決臉書或粉絲專頁貼文抓不到正確圖片和文字的方法。

1、首先可以到Facebook Debugger去了解一下
https://developers.facebook.com/tools/debug/sharing/

1.1 切換至「Sharing Debugger」頁面
1.2 輸入您的網址
1.3 點選「除錯」

wordpress

2、頁面跳出後,往下找到「og:image」會看到FB抓取的縮圖位置不是我們所想要的。
wordpress

3、這時我們可以找出WORDPRESS所使用的「佈景主題」中的「header.php」檔案。

4、在head之下,加入
wordpress

5、再回到「Sharing Debugger」,按下「Scrape Again」會看到我們想要顯示的正確圖片
wordpress


wordpress
註:如果暫時沒有看到更新,請多點「Scrape Again」幾次試試看

6、我們把網址貼到Facebook試試看
wordpress
這時會發現圖片左上方會出現「左右切換」的符號,切換到下一頁,會出現不正確的頁面。
wordpress

7、我們回到WORDPRESS的「佈景主題」找到的「functions.php」檔案
插入以下程式碼
wordpress

8、我們再次回到Facebook看看,是不是已經更新了呢?

補充:同理可證,如果我們想要分享到FB時有多張畫面可供顯示,可以在「header.php」檔案中,多加入幾行程式碼。
wordpress

  • LINE
  • 掃一掃加入我
  • weinxin
  • LINE@生活圈
  • 掃一掃加入我
  • weinxin

發表評論

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前評論:47   其中:訪客  47   博主  0

    • Janboldelf Janboldelf

      Kamagra Oral Jelly 100mg [url=https://apcialisle.com/#]cialis 5mg best price[/url] Finasteride Secure Ordering Overseas cialis vs viagra Acquista Propecia

      • Janboldelf Janboldelf

        Cytotec Over The Counter Usa [url=http://apcialisle.com/#]tadalafil cialis from india[/url] Cialis 10mg Forum Buy Cialis Ohio Propecia

        • Janboldelf Janboldelf

          Cialis Non Prescription Needed [url=http://apcialisle.com/#]Cialis[/url] Amoxicillin For Dental Implants cialis For Sale Finasteride

          • Stevanerry Stevanerry

            Cialis Nicht Nehmen [url=http://apcialisle.com/#]Buy Cialis[/url] Virgra For Men Cialis Propecia Receding

            • Stevanerry Stevanerry

              Order Propecia Online No Prescription [url=http://apcialisle.com/#]cheap cialis[/url] Over Counter Tadalis Sx Soft Buy Cialis Comprar Cialis Europa

              • MatExcery MatExcery

                Cialis En Promocion [url=http://apcialisle.com/#]Buy Cialis[/url] Kamagra In Deutschland cialis 5mg Dutasteride How To Buy

                • LesTres LesTres

                  Brand Valtrex For Sale [url=https://buyciallisonline.com/#]Buy Cialis[/url] Daily Cialis Without A Prescription cialis vs viagra Propecia Precio Farmacia Comprar

                  • LesTres LesTres

                    Cialis Kje Dobiti [url=http://cheapcialisir.com]Cialis[/url] Cialis En Embarazo generic 5mg cialis best price Propecia Langzeitnebenwirkungen

                    • MatExcery MatExcery

                      Cheap Prescription Prices [url=https://buyciallisonline.com/#]cialis 20mg for sale[/url] Discount Secure Ordering Acticin Direct Cialis Propecia Capsule Finasteride 1mg

                      • LesTres LesTres

                        Miconazole Cephalexin Primor Tylan [url=http://viacialisns.com/#]Cialis[/url] Buy Xenical 120 Mg Uk Buy Cialis Propecia Nipples

                        • Stevanerry Stevanerry

                          Cheapest Fastest Canadian Pharmacy [url=http://abcialisnews.com]Cialis[/url] Synthroid Without A Script cialis online Viagra Senza Ricetta Roma

                          • Stevanerry Stevanerry

                            Antiseptic [url=http://viacialisns.com/#]Buy Cialis[/url] Viagra Dapoxetine Online Purchase 259 Cialis Zithromax For Std

                            • Stevanerry Stevanerry

                              Discount Finasteride Buy [url=https://buyciallisonline.com/#]Buy Cialis[/url] For sale secure isotretinoin tablets website free shipping Buy Cialis Cat Amoxicillin

                              • Stevanerry Stevanerry

                                Cheap Deltasone [url=http://abcialisnews.com]Buy Cialis[/url] Generic For Cialis order cialis online Cephalexin Cats

                                • Stevanerry Stevanerry

                                  Can You Take Amoxicillin Capsule Apart [url=http://buyciallisonline.com/#]cialis from canada[/url] Viagra From Usa Pharmacy Cialis Get Dapoxetine Online No Prescription

                                  • LesTres LesTres

                                    Buy Claravis Propecia [url=http://buyciallisonline.com/#]Buy Cialis[/url] Cialis Generic Safe cheapest cialis Viagra Generico Online Italia

                                    • LesTres LesTres

                                      Viagra 100 Preis 12 [url=http://buycialisuss.com]cialis 40 mg[/url] Propecia Dosage Sperm Cialis Propecia Drug Coupons

                                      • LesTres LesTres

                                        Cialis 20 Dosage [url=http://abuycialisb.com]cialis from canada[/url] Cephalexin Induced Acute Interstitial Nephritis Buy Cialis Testbericht Levitra

                                        • LesTres LesTres

                                          Is There A Natural Anabuse [url=http://buyciallisonline.com/#]Cialis[/url] Cephalexin For Dogs No Prescription Buy Cialis Azathioprine

                                          • LesTres LesTres

                                            Levitra Foglietto Illustrativo 10mg [url=http://buyciallisonline.com/#]cialis no prescription[/url] Discount Free Shipping Clobetasol Cheap Legally Online cialis Viagra E Effetti

                                            • LesTres LesTres

                                              Canadian Health [url=http://viacialisns.com/#]cialis price[/url] Viagra For Sale In Winnipeg cialis without a doctor’s prescription Cheapeast Zentel Medication Discount Overseas

                                              • MatExcery MatExcery

                                                Amoxicilina Direct Medicine Next Day Delivery Shop [url=http://buyciaonlinex.com/#]Buy Cialis[/url] Buy Viagra Kamagra online cialis Buy Cialis Get Viagra Free

                                                • Stevanerry Stevanerry

                                                  Citalopram E Paroxetina [url=http://abuycialisb.com]Buy Cialis[/url] Worldwide Bentyl 20mg Medicine Website Low Price Pharmacy cialis Pharmacokinetics For Amoxicillin

                                                  • Stevanerry Stevanerry

                                                    Cialis Viagra Controindicazioni [url=http://buyciallisonline.com/#]Buy Cialis[/url] Order Celebrex No Prescription Cialis Wie Bekomme Ich Viagra Cialis Levitra

                                                    • LesTres LesTres

                                                      Cialis Efectos [url=http://abcialisnews.com]Cialis[/url] Commentaire Achat Cialis France Cialis Comprar Propecia

                                                      • MatExcery MatExcery

                                                        Cytotec Definition Nonsteroidal Anti Inflammatory Drugs [url=http://abcialisnews.com]Cialis[/url] Propecia Efectos 1 Mg Buy Cialis Cialis 20 Dosage

                                                        • MatExcery MatExcery

                                                          Fluoxetine With Overnight Delivery [url=http://abuycialisb.com]where to buy cialis online safely[/url] Comprar Cialis Original Online Madrid Buy Cialis Buy Cheap Diflucan

                                                          • MatExcery MatExcery

                                                            Priligy Effectiveness [url=http://cialisjh.com]cialis vs viagra[/url] Progesterone Find From Canada canadian cialis Amoxicillin Dosage In Chicken Feed

                                                            • LesTres LesTres

                                                              Levitra 20 Mg Problemi [url=http://buyciaonlinex.com/#996]Cialis[/url] Kamagra Overnight Delivery cheapest cialis Orlistat Without Prescription

                                                              • LesTres LesTres

                                                                Brand Name Propecia Become Pregnant [url=http://abuycialisb.com]Cialis[/url] Viagra Cialis Online Pharmacy Cialis Ciprofloxacine Teva 500 Mg

                                                                • LesTres LesTres

                                                                  Achat Cialis Au Quebec [url=http://cialisjh.com]Buy Cialis[/url] Pharmary Online Cialis Keflex And Constipation

                                                                  • LesTres LesTres

                                                                    Candian Rx [url=http://cialisjh.com]Buy Cialis[/url] Clomid For Sale Cialis Pharmacy No Prescription

                                                                    • MatExcery MatExcery

                                                                      Levitra 10 Mg 12 Stuck [url=http://cheapcialisir.com]Buy Cialis[/url] Dutasteride Canada Buy Cialis Cialis Effetti Gravidanza

                                                                      • LesTres LesTres

                                                                        Fast Shipping Prednisone [url=http://buycialisuss.com]cialis online[/url] Hytrin Cialis Viagra Generico Al Miglior Prezzo

                                                                        • LesTres LesTres

                                                                          Zithromax Available In Canada [url=http://cialibuy.com]cialis no prescription[/url] Amoxil Pregnancy Category online cialis Baclofen For Sale

                                                                          • MatExcery MatExcery

                                                                            Zithromax Herpes [url=http://cialibuy.com]Buy Cialis[/url] Female Cialis 20mg cialis 20mg price at walmart Levitra Order

                                                                            • Stevanerry Stevanerry

                                                                              Coumadin And Amoxicillin Interactions [url=http://cialibuy.com]Buy Cialis[/url] Stendra Buy Now Cialis Levitra 10 Mg Quotazione

                                                                              • LesTres LesTres

                                                                                Propecia Ciclon [url=http://cialibuy.com]Buy Cialis[/url] Cialis Liquid Drops Buy Cialis Amoxicillin Sodium Sterile News Articles

                                                                                • Stevanerry Stevanerry

                                                                                  Cialis 20 Mg Filmtabl 8 St [url=http://cialibuy.com]Cialis[/url] Wann Nehme Ich Levitra Ein Cialis Viagra Doping

                                                                                  • Stevanerry Stevanerry

                                                                                    Tadalafil Prices Discount [url=http://cialibuy.com]cialis prices[/url] Can Lasix Be Given Im Cialis Indications For Keflex

                                                                                    • Kelirress Kelirress

                                                                                      Keflex Dosage For Dental Abscess [url=http://cialibuy.com]generic cialis[/url] Citrate Generic Sildenafil Viagra Cialis Lieferung Aus Deutschland Order Xenical Online Australia

                                                                                      • Kelirress Kelirress

                                                                                        Viagra Canada Where To Purchase Provera In Usa [url=http://cialibuy.com]Cialis[/url] Legally Direct Amoxicilina Internet C.O.D. With Free Shipping Quibron T Swanson Health Cialis Tadalafil Prezzo

                                                                                        • Stevanerry Stevanerry

                                                                                          Zithromax And Prolonged Qt Interval Propecia Op Recept Tadalis Sx Ordonnance [url=http://cialibuy.com]cialis 40 mg[/url] Cialisl Comprar Cialis Pago Contra Reembolso Amoxicillin Directions For Use

                                                                                          • MatExcery MatExcery

                                                                                            Super Cialis 40 Mg Acheter Du Cialis Securise [url=http://cialibuy.com]Cialis[/url] Tadalafil Best Price Best Place To Buy Tretinoin 0.05

                                                                                            • Kelirress Kelirress

                                                                                              Brevetto Propecia Farmaci Generici [url=http://cialibuy.com]Cialis[/url] Acheter Du Cialis Online

                                                                                              • Kelirress Kelirress

                                                                                                Kamagra A Buon Mercato Cytotec Misoprostol Grossesse [url=http://cialibuy.com]cialis[/url] Fast Shipping Viagra Canada Overnight Pharmacy4u Order Amoxicillin 500 Clav K 125 Mg

                                                                                                • Stevanerry Stevanerry

                                                                                                  Worldwide Zentel 400mg Amex Real order accutane no prescription Viagra Shipped From United States [url=http://cialibuy.com]Buy Cialis[/url] Cialis Place Monge Viagra Cocaina Amoxil Avec