No picture on Facebook

Post Reply
User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

No picture on Facebook

Post by tobydude » Sat Jan 27, 2018 7:26 pm

Hi.
When I post the URL of my meteotemplate website on Facebook,
there is no image with the URL.

Any ideas why?

Image

http://fjærvollan.no/template/indexDesktop.php

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: No picture on Facebook

Post by Jachym » Sat Jan 27, 2018 7:34 pm

Try using the homepage (indexDesktop.php) rather than index. Facebook sometimes does unexpected things, but the homepage should work - it works for me

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: No picture on Facebook

Post by tobydude » Sat Jan 27, 2018 7:46 pm

Hi.
I use undextop.php (this: http://fjærvollan.no/template/indexDesktop.php )
but no picture. :/

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: No picture on Facebook

Post by Jachym » Sat Jan 27, 2018 8:09 pm

The meta tag which sets this is there so it should be visible - unless they made some change in the facebook API

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: No picture on Facebook

Post by Jachym » Sat Jan 27, 2018 8:15 pm

It should show imgs/logo.png, check if you have that file on your server

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: No picture on Facebook

Post by tobydude » Sat Jan 27, 2018 8:24 pm

Nope.
No logo.png in the imgs folder. :/

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: No picture on Facebook

Post by tobydude » Sat Jan 27, 2018 8:36 pm

the facebook share button in the footer, doesnt show an image either.

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: No picture on Facebook

Post by Jachym » Sat Jan 27, 2018 8:37 pm

I think I know where the problem is. Thanks for letting me know, I wrote it down on my to-do list for v18 to fix this. I made one change in one previous version and didnt realize it broke this script.

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: No picture on Facebook

Post by tobydude » Sat Jan 27, 2018 8:47 pm

Image

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: No picture on Facebook

Post by tobydude » Mon Feb 05, 2018 1:11 pm

Asked my ISP.
They said : Try facebook debugging.

Image

Did´nt told me much.

User avatar
mpca86
Observer
Observer
Posts: 13
Joined: Tue Jan 16, 2018 9:41 pm
Location: Poprad
Station model: NodeMCU ESP8266
Software: via API
Contact:

Re: No picture on Facebook

Post by mpca86 » Tue Feb 06, 2018 2:35 am

tobydude: in a similar sense I wrote here: viewtopic.php?f=55&t=1120
Now output from Facebook Sharing Debugger looks like this:
Clipboard02.jpg
Clipboard02.jpg (155.7 KiB) Viewed 26586 times

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: No picture on Facebook

Post by tobydude » Tue Feb 06, 2018 10:19 am


User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: No picture on Facebook

Post by tobydude » Tue Feb 06, 2018 7:36 pm

Is there any place in the index.php I can fill in metatags?

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

User avatar
mpca86
Observer
Observer
Posts: 13
Joined: Tue Jan 16, 2018 9:41 pm
Location: Poprad
Station model: NodeMCU ESP8266
Software: via API
Contact:

Re: No picture on Facebook

Post by mpca86 » Thu Feb 08, 2018 6:41 pm

no index.php but header.php ;-)

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: No picture on Facebook

Post by tobydude » Fri Feb 09, 2018 7:31 am

More nag. :)

Where in heder.php?
At the top or bottom?.

This is the html tags I think should be put in:

"<html>
<head>
<meta http-equiv="refresh" content="0; url=template/index.php" />
<title>Meteotemplate</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Meteotemplate - free website template for weather enthusiasts." />
<meta name="keywords" content="meteotemplate, fjærvoll weatherservice, fjærvoll weathersørvis, fjærvoll temperatur, fjærvoll vindstyrke, bø i vesterålen, fjærvoll værstasjon, værstasjon, weather nord-norge " />
<meta name="robots" content="index,follow" />
<link rel="icon" href="favicon.ico" type="image/x-icon">
</head>
</html>"
Attachments
header.jpg
header.jpg (201.21 KiB) Viewed 26529 times

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: No picture on Facebook

Post by tobydude » Fri Feb 09, 2018 10:13 am

Seems I messed upp the whole webpage.
It went back to Meteotemplate 11.0 Passion Fruit
:(

User avatar
mpca86
Observer
Observer
Posts: 13
Joined: Tue Jan 16, 2018 9:41 pm
Location: Poprad
Station model: NodeMCU ESP8266
Software: via API
Contact:

Re: No picture on Facebook

Post by mpca86 » Fri Feb 09, 2018 9:45 pm

edited: OMG,, just read the code a little...
Last edited by mpca86 on Fri Feb 09, 2018 10:08 pm, edited 1 time in total.

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: No picture on Facebook

Post by Jachym » Fri Feb 09, 2018 9:50 pm

mpca86 wrote: Fri Feb 09, 2018 9:45 pm OMG,, just read the code a little...
For example, put it between lines 435 and 436....

Clipboard02.jpg
MPCA86 - please stay polite, not everyone knows how to code

tobydude - keep in mind that unless you know exactly what you are doing things can go seriously wrong and what I always say is that everyone is free to modify the code, but at that moment Im no longer able to help them because making changes directly in the code means I no longer know what could be wrong

User avatar
mpca86
Observer
Observer
Posts: 13
Joined: Tue Jan 16, 2018 9:41 pm
Location: Poprad
Station model: NodeMCU ESP8266
Software: via API
Contact:

Re: No picture on Facebook

Post by mpca86 » Fri Feb 09, 2018 10:10 pm

Jachym wrote: Fri Feb 09, 2018 9:50 pm
MPCA86 - please stay polite, not everyone knows how to code

tobydude - keep in mind that unless you know exactly what you are doing things can go seriously wrong and what I always say is that everyone is free to modify the code, but at that moment Im no longer able to help them because making changes directly in the code means I no longer know what could be wrong
I have modified my post. I apologize and agree with your opinion!!

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: No picture on Facebook

Post by Jachym » Fri Feb 09, 2018 10:18 pm

No problem, it was nothing serious, I just didnt want it to go further and thanks for helping tobydude

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: No picture on Facebook

Post by tobydude » Sat Feb 10, 2018 7:47 am

Thanks.
So, I can put a "html" kode in the middle of a .php-file?

Here:
Attachments
code2.jpg
code2.jpg (46.13 KiB) Viewed 26487 times

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: No picture on Facebook

Post by Jachym » Sat Feb 10, 2018 8:00 am

Im not sure what you are trying to achieve, Im afraid you will have to do it yourself, keep in mind that unless you really know PHP, HTML and CSS well it is a risky operation. Also keep in mind that making changes locks you out of updates because if you perform the update your changes will be reset, or you will not update which means you wont get any new functions released in upcoming versions

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: No picture on Facebook

Post by tobydude » Sat Feb 10, 2018 11:01 am

Ok. Thanks.
I´ll give it a rest. :)

MJW
Advisor
Advisor
Posts: 60
Joined: Sun Dec 24, 2017 2:22 pm
Station model: AW WS-2000ish
Software: Meteobridge/OIP/GW-1000
Contact:

Re: No picture on Facebook

Post by MJW » Tue Mar 06, 2018 1:24 am

I'm not sure if you ever solved this or not, but what I did was on line 1 of index.php added the following -
<meta property="og:image" content="http://westfamilynj.net/ObservatoryWestWeather.JPG" />, and then my preview image shows up.

Here is what Facebook debugger shows.
fb debugger.JPG
fb debugger.JPG (72.55 KiB) Viewed 26291 times
I have the manual changed documented in the Admin Notes section of my site.

Good luck!
So many trees in NJ!

Image

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: No picture on Facebook

Post by tobydude » Tue Mar 06, 2018 6:52 pm

Thanks for the tip. I´ll try that.

Post Reply