Amphtml: Button does not appear if Facebook Like button's URL contains numbers and dashes

Created on 14 Dec 2017  路  8Comments  路  Source: ampproject/amphtml

Hi!
Button does not appear if Facebook Like button's URL contains numbers and dashes

For example NG pattern
https://xxxxxx/column/160824-6/amp
https://xxxxxx/column/666-666/amp

For example OK pattern
https://xxxxxx/column/naturak-6/amp
https://xxxxxx/column/natural-hi/amp
https://xxxxxx/column/666666/amp

Thank you!

All 8 comments

/cc @eduardogoncalves if you have time to look into it.

@YoshinoriKobayashi Hi, I've tested, and it's working, can you check the source code of this page?
https://www.testesmegadivertidos.com.br/teste/16_amigoempromocao-quais-amigos-estao-em-promocao-na-sua-loja-virtual.html

<amp-facebook-like width=200 height=29
    layout="fixed"
    data-layout="button_count"
    data-size="large"
    data-href="https://www.testesmegadivertidos.com.br/teste/16_amigoempromocao-quais-amigos-estao-em-promocao-na-sua-loja-virtual.html">
</amp-facebook-like>


You must add this in header:

<script async custom-element="amp-facebook-like" src="https://cdn.ampproject.org/v0/amp-facebook-like-0.1.js"></script>

/cc @aghassemi if you can check it to confirm.

image

@YoshinoriKobayashi, please check your code and remove the highlighted part.
image

You're typing: data-href="https://www.facebook.com/https://swiftbg.github.io/swiftbook/amp/naturak-6/"
You should type: data-href="https://swiftbg.github.io/swiftbook/amp/naturak-6/"

It's working, check: http://www.testesmegadivertidos.com.br/debug/amp/

Let us know if it's working after you change your code.

@eduardogoncalves
OH no! I'm sorry! m(_ _)m I success when I updated it!
Very Very Thank you!

@aghassemi I believe you can close this one.

Thanks for your help @eduardogoncalves

Was this page helpful?
0 / 5 - 0 ratings