Description not available because of robots.txt on Rails app - ruby-on-rails

I have some problems with the Google snippet description of my Rails app in Google search results. I get:
A description for this result is not available because of this site’s robots.txt
I don't understand why I am getting this. I am not blocking the googlebot. Here's my robots.txt
User-Agent: *
Disallow: /admin/
Sitemap: https://s3-eu-west-1.******
and I also include this meta in my application.html file:
%meta{ name: 'description', content: "Le prix national Stars et Métiers est organisé en collaboration entre le groupe Banque Populaire et le réseau des CMA pour encourager l'excellence, l'audace et l'innovation, et mettre en lumière des chefs d'entreprises d'exception" }/
Why does Google not want to take into account my description?
UPDATE: when I am using this tool to see if my description is displaying, it works: https://totheweb.com/learning_center/tool-test-google-title-meta-description-lengths/
But when I try to find the website via the classic Google search, I still get "A description for this result is not available because of this site’s robots.txt".

Related

Google APIs Force English Response Message

I'm using Google Sheets API to perform actions against the users' spreadsheets after they authenticate, and some of the actions raise errors like:
This action would increase the number of cells in the workbook above the limit of 5000000 cells
or
You are trying to edit a protected cell or object. Please contact the spreadsheet owner to remove protection if you need to edit
In both cases, the API returns `HttpError 400 code and the string value is the only way to distinguish from one another and knowing the specific issue. No error code related to the issue is provided. The problem is that the string comes in different languages according to the user account language settings, making it really hard to map all language possibilities. For example, the message bellow is the equivalent to the one above, but in Spanish instead:
Estás intentando modificar una celda o un objeto protegido. Si necesitas realizar cambios, comunícate con el propietario de la hoja de cálculo para que quite la protección
Is there any parameters on the APIs that enforce the response to be always in a specific language?

Dailymotion API - Search Restriction

I have a problem on video search. With a French IP, everything works well, but with Ireland IP no.
I try :
https://api.dailymotion.com/user/xm44zy/videos?search=RC%20Lens on French IP -> 500+ results
https://api.dailymotion.com/user/xm44zy/videos?search=RC%20Lens on Ireland IP -> 1 result
Maybe Video access error (DM007 Video geo-restricted by its owner) https://developer.dailymotion.com/api#access-error ?
No because https://api.dailymotion.com/video/x6f8qjq works well. Not found on search query (with Ireland IP) but I have access to the detail of the video
an idea ?
Thanks.
The API will always returns information about a specific video if you request data with its own resource URI (like: https://api.dailymotion.com/video/ID), even if the video is restricted in your country.
However, when using listings (i.e. asking for a video list, or when searching for videos based on search terms), the list will automatically exclude videos which can't be played in your country.
You can know if a video is geoblocked in your country using the "geoblocking" field:
https://developer.dailymotion.com/api/internal#video-geoblocking-field.
In your case, your example is geo-restricted everywhere else France, that's why it won't show in search results (or any listings): https://api.dailymotion.com/video/x6f8qjq?fields=id,title,geoblocking
returns: "geoblocking": [
"allow",
"fr"
]
This means you can only watch it ( and appears in search results ) in France

Mendelson AS2 MDN issue

I am establishing a new AS2 connection for a customer, but I'm having a problem with MDN sending. They report not getting the MDN.
I have this in the log :
[14:35:43] mendelson_opensource_AS2-1521470143682-4#eg: Préparer la connexion MDN sortante vers "http://testas2.mendelson-e-c.com:8080/as2/HttpReceiver", connexions actives: 1/5.
[14:35:43] mendelson_opensource_AS2-1521470143682-4#eg: Envoi d'un MDN asynchrone vers http://XXXXXXXXXX/as2/HttpReceiver.
[14:35:47] mendelson_opensource_AS2-1521470143682-4#eg: Message envoyé avec succès (HTTP 200); 3,30 KB transféré en 3,32s [0,99 KB/s].
[14:35:47] mendAS2-1521470142708-1961#eg: Succès de la communication AS2, le contenu 1 a été déplacé vers "/home/mendelson/messages/e/inbox/g/DELINS.18031915353514355".
I don't know where I can delete this in the configuration : "http://testas2.mendelson-e-c.com:8080/as2/HttpReceiver"

Share on LinkedIn with og

I have rails app. I added og tags for Facebook, google +, and Vkontakte. And I need to add possibility to share to LinkedIn too. But I don't understand why LinkedIn don't pick my OG tags.
My html:
= tag :meta, property: 'og:url', content: 'https://myapp.com/app'
= tag :meta, property: 'og:title', content: 'MyApp'
= tag :meta, property: 'og:description', content: 'You can always find a my app !'
= tag :meta, property: 'og:image', content: "https://myapp.com#{image_path('backgrounds/desk.jpg')}"
And facebook, g+, vk works perfectly, but linked in don't fetch any information from my website.
Any advise?
I had the same problem: everything worked except for LinkedIn on our https-only website. The problem was that ServerName and ServerAlias were not set in the Apache config file (default-ssl in our case).
You can use the Twitter card validator to check your SSL-settings (https://cards-dev.twitter.com/validator), if this throws an error adjust your Apache config.
You find additional information here: SSL handshake alert: unrecognized_name error since upgrade to Java 1.7.0
and here: Making your site shareable on LinkedIn
Interesting! You made your post on March 10, 2017. Support for og: tags at LinkedIn was only officially added and released on March 23, 2017; the feature just 13 days away!
The following formats are now all supported...
<meta property='og:title' content='Title of the article"/>
<meta property='og:image' content='//media.example.com/ 1234567.jpg"/>
<meta property='og:description' content='Description that will show in the preview"/>
<meta property='og:url' content='//www.example.com/URL of the article" />
Source: Official LinkedIn Documentation: Making Your Website Shareable on LinkedIn.
Works great for me:
If you want to verify that you have the tags in place correctly in your <head> block of HTML, try testing the page you're sharing at LinkedIn Post Inspector.

Cant display rich social media post with og tags

I am having trouble with the og meta tags for social media sharing.
I have links for social media sharing in my app :
= link_to "http://www.facebook.com/share.php?u=#{request.base_url}#{request.env['PATH_INFO']}" do
#i{class: "fa fa-facebook-square social-icon", "aria-hidden"=>"true"}
= link_to "http://www.linkedin.com/shareArticle?mini=true&url=#{request.base_url}#{request.env['PATH_INFO']}&source=#{request.base_url}" do
#i{class: "fa fa-linkedin-square social-icon", "aria-hidden"=>"true"}
= link_to "http://twitter.com/intent/tweet?status=#{request.base_url}#{request.env['PATH_INFO']}" do
#i{class: "fa fa-twitter-square social-icon", "aria-hidden"=>"true"}
each link get the absolute url of the current page and insert it in the sharing url of each specific social media.
I have a notification page with twitter, facebook and linkedn sharing buttons. I have included the following og tags :
- content_for(:page_meta) do
%meta{ property: 'og:title', content: "J’ai voté pour mon lauréat Stars et Metiers" }
%meta{ property: 'og:url', content: laureates_url }
%meta{ property: 'og:description', content: "J’ai voté pour mon lauréat coup de ❤ Stars & Métiers 2016 ! Et vous, quel est votre coup de cœur ? avec lien minimisé vers la page lauréat du site" }
og: url is not the current page url because I dont want the social media post to redirect to the page where the social media buttons where but to a different one (laureates_url)
However I keep getting an error message from each social media that " the page is not found"
What am I doing wrong here ?
UPDATE
after using the facebook debugger with my url :
https://developers.facebook.com/tools/debug/og/object/?q=https%3A%2F%2Fstaging-starsetmetiers.herokuapp.com%2Fprix-coup-de-coeur-du-public%2F17701%2Fnotification
It seems that facebook is able to crawl my url. It even shows me a preview of the potential post. Two problems are still unresolved :
1) When I click on the facebook sharing link on my website I dont get the preview as in the facebook debugger. I still get a page not found error :
2) the debugger tells me
The 'og:description' property should be explicitly provided, even if a value can be inferred from other tags.
And it is true that in the preview the debugger shows me, it uses the description from the classic meta name= "description". However there is an og:description present in my page that is the description I want to show in my posts and it is present on the page :
<meta content="J’ai voté pour mon lauréat coup de ❤ Stars & Métiers 2016 ! Et vous, quel est votre coup de cœur ? avec lien minimisé vers la page lauréat du site" property="og:description">
How can I fix these problems ?
Thanks for sharing the output of your page in the Facebook debugger as I suggested in my comment. For your two questions,
It looks like there is a stray closing parenthesis in your Facebook share link. If you remove it, the page should be found normally.
It does look like your meta tags are properly labelled with the Open Graph properties (og:url, etc), so I don't understand why the crawler isn't picking it up. The only thing I can think of is that the order of the property and content attributes in the meta tag is in the reverse order of the example shown on the Facebook site, but I doubt that matters...

Resources