Google Maps goo.gl links not displaying as oneboxed


(Dorukhan Akkaya) #1

Some google maps links I’m pasting into discourse are not displayed as oneboxed although og tags look fine.
|Tag|Content|
|og:title|Firopotamos Beach|
|name|Firopotamos Beach|
|og:image|https://lh5.googleusercontent.com/p/AF1QipNmk3ks05mYmfsSpsZMDdVcL3LUo-zh-kr8FHl-=w256-h256-k-no-p|
|image|https://lh5.googleusercontent.com/p/AF1QipNmk3ks05mYmfsSpsZMDdVcL3LUo-zh-kr8FHl-=w256-h256-k-no-p|
|og:image:width|256|
|og:image:height|256|
|og:description|· Sehenswürdigkeit · Firopotamos 848 00|
|description| · Sehenswürdigkeit · Firopotamos 848 00|
|og:site_name|Firopotamos Beach|

Is there a solution for this?

Link listed as example above:
https://goo.gl/maps/DRKWqNU5e2B2


(Robert McIntosh) #2

Google maps are a whitelisted iframe in most cases rather than a standard onebox

Search for iframe in settings to make sure that the path for Google maps is still listed. You may need to use the proper embed code / path for the google map rather than a shortened one for it to be recognised, such as this:

<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3196.535228764121!2d24.42514651528866!3d36.757725579957366!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x1498d92b1de0b2bb%3A0x7329821b0f9cc6a8!2sFiropotamos+Beach!5e0!3m2!1sen!2suk!4v1537894919010" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>


#3

BTW, please stop using goo.gl URL shortener. Google will discontinue it.

Starting March 30, 2018, Google will be turning down support for goo.gl URL shortener. From April 13, 2018 only existing users will be able to create short links on the goo.gl console. You will be able to view your analytics data and download your short link information in csv format for up to one year, until March 30, 2019, when Google will discontinue goo.gl. Previously created links will continue to redirect to their intended destination. Please see this blog post for more details.


(Dorukhan Akkaya) #4

I was guessing embed was working well, I saw it in other posts. Though I’m still wondering if goo.gl links are oneboxable because:

  1. It’s hard to tell anyone to use embedding
  2. The link and the meta tags are more than enough and I don’t need maps in posts. I think links are more usable than maps in this case, maps are better in maps.google.com. Maybe this is only valid for my case.

(Dorukhan Akkaya) #5

Google is the one using this shortener.

02