3

Facebook OG圖像的東西是一場噩夢。你如何解決保持圖像始終在Facebook上出現的權利?我目前正在努力爲網站論壇獲取默認圖片設置。論壇在phpBB。我已將此代碼添加到標題中。強制Facebook OG圖像一致性

<meta property="og:image" content="https://fyxtrpg.com/wp-content/gallery/assets/fyxt-rpg-forum-default-facebook-image.jpg" /> 
<meta property="og:image:type" content="image/jpeg"> 
<meta property="og:image:width" content="484"> 
<meta property="og:image:height" content="252"> 

圖像被設置爲它應該是的確切大小。我甚至告訴Facebook。但它仍然扼殺了兩端。

我也收到一個錯誤,說它無法下載圖像或者它太小。它不小,超過200px分鐘。它也在調試器中列出,並顯示Facebook確實可以下載它。

我的URL:https://fyxtrpg.com/fyxt-forum/viewtopic.php?f=7&t=128

Facebook的調試信息

Time Scraped 2 seconds ago 
Response Code 206 
Fetched URL https://fyxtrpg.com/fyxt-forum/viewtopic.php?f=7&t=128 
Canonical URL https://fyxtrpg.com/fyxt-forum/index.php 
Notice 
Warnings That Should Be Fixed 
og:image could not be downloaded or is too small og:image was not defined, could not be downloaded or was not big enough. Please define a chosen image using the og:image metatag, and use an image that's at least 200x200px and is accessible from Facebook. Image 'https://fyxtrpg.com/wp-content/gallery/assets/fyxt-rpg-public-beta-logo.jpg' will be used instead. 
To find the object, these are the redirects we had to follow 
original https://fyxtrpg.com/fyxt-forum/viewtopic.php?f=7&t=128 
og:url https://fyxtrpg.com/fyxt-forum/index.php 
The following will be treated as a redirect by the crawler: 
A HTTP redirect 
A <link rel="canonical" href=".." /> tag 
A <meta property="og:url" content=".." /> tag 
The final URL, which we tried to extract metadata from is highlighted in bold 
These are the raw tags that we found 
Meta Tag <meta property="og:url" content="https://fyxtrpg.com/fyxt-forum/index.php" /> 
Meta Tag <meta property="og:title" content="Fyxt RPG Forums" /> 
Meta Tag <meta property="og:description" content="The free to play Fyxt RPG system offers RPG players a fun, fast, and flexible RPG experience. Play any genre, setting, or character for free with Fyxt RPG!" /> 
Meta Tag <meta property="og:image" content="https://fyxtrpg.com/wp-content/gallery/assets/fyxt-rpg-forum-default-facebook-image.jpg" /> 
Meta Tag <meta property="og:image:type" content="image/jpeg" /> 
Meta Tag <meta property="og:image:width" content="484" /> 
Meta Tag <meta property="og:image:height" content="252" /> 
Based on the raw tags, we constructed the following Open Graph properties 
og:url https://fyxtrpg.com/fyxt-forum/index.php 
og:type website 
og:title Fyxt RPG Forums 
og:image  
og:description The free to play Fyxt RPG system offers RPG players a fun, fast, and flexible RPG experience. Play any genre, setting, or character for free with Fyxt RPG! 
og:updated_time 1417807331 

正如你所看到的調試器說,它無法找到它然後顯示我的一切,它實際上沒有找到數據。

當我發佈的圖像被裁剪,但如果我刪除,手動上傳它適合罰款。這是不可接受的,我需要知道,任何人從網站分享的東西都會有一個像樣的圖像出現。沒有一個被切碎或扭曲。

我該如何解決這個問題,以便Facebook看到圖像並一致地顯示它?

有沒有一種方法的過程,有人可以建議,以確保所有鏈接到網站將X尺寸的照片/縮略圖?這真是令人沮喪,因爲它似乎有時Facebook使用肖像,其他時間的景觀,其他時間一個正方形。我甚至注意到它使用不同的方法發佈相同的圖片。這使得很難確保Facebook上的圖像看起來不錯。

感謝您的建議和幫助!

更多信息增加...我也發送了無數的Facebook錯誤報告,因爲這些東西需要修復。

我也發現Facebook在創建和發佈之間並不一致。這包括分辨率,比例和其他一些事情。這是我在ONE嘗試發佈的帖子中發現的一個混亂。

如果任何人有我渴望聽到如何真正與Facebook和他們的反對API和不工作的任何建議...

Facebooks Many Image Errors

+1

有類似的問題,但我使用的是Drupal CMS。按照Facebook的規定,我的圖像被裁剪爲600x315,但FB調試器給我的警告是關於og:image無法下載或太小。然後在預覽區域中,有時會使用正確的圖像,有時則不會。完全沒用的調試信息。我感到你的痛苦: -/ – JamesWilson 2014-12-20 21:30:06

+0

好問題,可惜沒人回答!掙扎着同樣的東西...... – Cyprus106 2015-03-21 15:00:33

回答

0

我一直在處理這個在過去的幾天裏。 Facebook似乎只將OG標籤作爲建議。我發現如果你的圖像接近一個正方形,並且發現一個足夠大的圖像接近它的理想縱橫比,那麼它將使用那個圖像。

此外,即使他們說最小值是600px X 315px,他們確實更喜歡1200像素以上的圖像630像素。

https://developers.facebook.com/docs/sharing/best-practices#images