Before asking for help please read "Requesting Help and Suggestions" by clicking on that tab above here.
  • Page:
  • 1

TOPIC:

Facebook Sharing problem 3 weeks 6 days ago #1

  • PKlimis
  • PKlimis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 58
I have just upgrade my site to version 2 genealogy.kamarina.gr from1.8 and I face a problem with facebook sharing module.

With version 1.8 sharing links of the site looked like this
With version 2.0.15 sharing links of the site looked like this
No Photo and no description.

Facebook provides a tool called sharing debugger ( developers.facebook.com/tools/debug/?q=h...2FEupraxia-Daskala-B that returns some warnings.
  • Bad Response Code - URL returned a bad HTTP response code.
  • Inferred Property - The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.
  • Missing Properties - The following required properties are missing: og:url, og:type, og:title, og:image, og:description, fb:app_id

Any idea why this is happening in version 2?

I checked some other webtrees sites with ver.2 and in some of them this problem is not happening.
For example :
but in some others also happens
e.x tree.criadoperez.com/index.php?route=%2F...se-Luis-Criado-Perez

So is it some sort of etting that I have to make?
Attachments:

Please Log in or Create an account to join the conversation.

Facebook Sharing problem 3 weeks 6 days ago #2

  • PKlimis
  • PKlimis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 58
Facebook sharing debugger returns the same errors for : fisharebest.webtrees.net/tree/genesis/in...10/Olive-May-Harding at developers.facebook.com/tools/debug/?q=h...%2FOlive-May-Harding but it brings meta data informations of the page!!!

Please Log in or Create an account to join the conversation.

Facebook Sharing problem 3 weeks 5 days ago #3

  • PKlimis
  • PKlimis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 58
Fisharebest site somehow is allowing Fb scraper to read its pages.

developers.facebook.com/tools/debug/?q=h...%2FOlive-May-Harding

Please Log in or Create an account to join the conversation.

Facebook Sharing problem 3 weeks 3 days ago #4

  • PKlimis
  • PKlimis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 58
Problem solved.

Please Log in or Create an account to join the conversation.

Facebook Sharing problem 3 weeks 3 days ago #5

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 14516
My site does not do anything special. It runs the latest stable version of webtrees, with no custom modules.

I do not have a facebook account, so I cannot use its debugging tool. If you would like me to investigate, could you copy/paste the output from the tool.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Facebook Sharing problem 3 weeks 3 days ago #6

  • PKlimis
  • PKlimis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 58
I solved the problem adding another ASN number for facebook robot I found searching for my problem.

private const ROBOT_ASN = [
'facebook1' => 'AS32934',
'facebook2' => 'AS63293',
'twitter' => 'AS13414',
];

Please Log in or Create an account to join the conversation.

Facebook Sharing problem 3 weeks 3 days ago #7

  • PKlimis
  • PKlimis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 58
Is there an option to add ASN to the config.ini rathen than harc-coded it ?

Please Log in or Create an account to join the conversation.

Facebook Sharing problem 3 weeks 2 days ago #8

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 14516
There is an option to *block* requests from ASNs.

The logic to block "fake crawlers" (i.e. people pretending to be google, bing, etc.)
is taken from the documentation provided by each provider.

The documentation from Facebook says that all its robots operate from AS32934
developers.facebook.com/docs/sharing/webmasters/crawler

So, if Facebook tell me that its crawlers only operate from this ASN, then
that's the one I'm going to allow.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

Facebook Sharing problem 3 weeks 2 days ago #9

  • PKlimis
  • PKlimis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 58
"Facebook operates peering with two different autonomous systems (AS Numbers):
AS32934, which is the global AS and provides access to most Facebook products and is the most common peering option
AS63293, provides Facebook's most popular content and peers at a smaller number of locations"

I found the information at Facebook official page... www.facebook.com/peering/

Please Log in or Create an account to join the conversation.

Facebook Sharing problem 3 weeks 2 days ago #10

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
  • Posts: 2275
The crawler docs don't mention any ASN anymore.
But PKlimis (edit: beat me to it) is right, they use two:
www.facebook.com/peering/
stamboom.BertKoor.nl runs on webtrees v1.7.13

Please Log in or Create an account to join the conversation.

Last edit: by bertkoor.

Facebook Sharing problem 3 weeks 2 days ago #11

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 14516
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Facebook Sharing problem 3 weeks 2 days ago #12

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 14516

The crawler docs don't mention any ASN anymore.


The page I linked says:

> To get a current list of IP addresses the crawler uses, run the following command.
> whois -h whois.radb.net -- '-i origin AS32934' | grep ^route
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Facebook Sharing problem 3 weeks 2 days ago #13

  • PKlimis
  • PKlimis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 58
You are welcome Greg.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum