We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

og:image not populated - so FaceBook Shares have no image (just blank) | Forum

Kevin
Kevin Jan 1 '17

Settings/SEO/Social Meta:

Has the image uploaded and displayed on the page along with all other og:

og:title - copied from Titleog:url - copied from URLog:type - ‘website’ value is set by defaultog:description - copied from Meta Descriptionog:site_name - mysitenametwitter:title - copied from Titletwitter:description - copied from Meta Descriptionog:image and twitter:image - the same image is set for both tags. The following image types will be set automatically depending on page in question: Logo, Video Preview, Event Image, User Photo, Group Image or Logo, Photo Album First Photo, Photo.



source code of page has:

<meta name="og:image" content="https://mysite.com/ow_userfiles/plugins/base/meta_social_logo.jpg" />


The meta_social_logo.jpg is there (downloaded and confirmed)


However the https://developers.facebook.com/tools/debug/og/object/ does not show the data:

Based on the raw tags, we constructed the following Open Graph propertiesfb:app_idog:urlhttps://mysite.com/og:typewebsiteog:titleJoin mysite- The community for ....og:descriptionJoin mysite- The community for ...og:image


Is it because unable to access that folder directly? If I cut and paste the url in browser- returns error:

Forbidden You don't have permission to access /ow_userfiles/plugins/base/meta_social_logo.jpg on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Kevin
Kevin Jan 2 '17
Just installed the Social Media Sharing plugin. It works much better for sharing content in Forum, Events, Photos and Video.


However still no image in Facebook shares, even though when viewing page source it has correct URL for image.


Hope I am missing something obvious...

Thanks

Kevin
Kevin Jan 2 '17
Social Media Sharing 6. Select the services you want to be available to your users, upload the default image* and click the Submit button. * default image - this image will be shown on the service by default in case no images were found.
Kevin
Kevin Jan 2 '17
I checked with my hosting service, and they confirmed the following:

I have checked the provided image and it does not appear to be accessible from my end due to 403 Forbidden error:

https://MySite.com/ow_userfiles/plugins/base/meta_social_logo.jpg

Could you please make sure that you have not set any restrictions, hotlink protection or plugins that do not allow the direct access to the image as this might be the cause of the issue?


Does anyone know where these Oxwall settings would be?

============================== 

I just noticed that if you remove the so it reads then you can reach. Asking Hosting if this is  something in my SSL setup?

Thanks,

The Forum post is edited by Kevin Jan 2 '17
Kevin
Kevin Jan 2 '17
RESOLVED.one of the lines in the .htaccess file has been fixed by Hosting service :)
dave Leader
dave Jan 5 '17
Thanks for sharing, glad you got it fixed., :)
Igor
Igor Apr 1 '18

Hi Kevin and dave


I am fighting this issue already for months, please help me to resolve it.

I tried everything I could think of, including several checks on hosting - no results.


I do manage to get the logo of Oxwall when sharing to facebook but no image preview (youtube shares were showing own image as preview some months ago and then stopped on several Oxwalls).


Kevin, what did you change in .htaccess file that helped solving it?

Please see below what's in two of my .htaccess files - from different oxwalls that both have this problem


============

AddHandler application/x-httpd-php56 .php .php5 .php4 .php3


Options +FollowSymLinks
RewriteEngine On
RewriteBase /forum

AddEncoding gzip .gz
AddEncoding gzip .gzip
<FilesMatch "\.(js.gz|js.gzip)$">
  ForceType text/javascript
</FilesMatch>
<FilesMatch "\.(css.gz|css.gzip)$">
  ForceType text/css
</FilesMatch>

RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
RewriteCond %{REQUEST_URI} !/e500\.php
RewriteCond %{REQUEST_URI} !/captcha\.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php


-----------------------


Options +FollowSymLinks
RewriteEngine On

AddEncoding gzip .gz
AddEncoding gzip .gzip
<FilesMatch "\.(js.gz|js.gzip)$">
  ForceType text/javascript
</FilesMatch>
<FilesMatch "\.(css.gz|css.gzip)$">
  ForceType text/css
</FilesMatch>


RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
RewriteCond %{REQUEST_URI} !/e500\.php
RewriteCond %{REQUEST_URI} !/captcha\.php
RewriteCond %{REQUEST_URI} !/google9fc31c5d646e37ca\.html
#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php


#RewriteCond %{REQUEST_URI} !/sitemap\.xml
#RewriteCond %{REQUEST_URI} !/sitemap\.xml\.gz



RewriteEngine On
RewriteCond %{HTTP_HOST} ^zarplata/forum\.eu [NC]
RewriteRule ^(.*)$ https://www.zarplata.eu/forum/$1 [L,R=301]

The Forum post is edited by Igor Apr 1 '18