0

AMP を実装しようとしていますが、/url.html#development=1 にアクセスすると、Facebook amp-social-share ノードで「帰属表示が必要です」というエラーが表示されます。しかし、そのノードに属性属性があり、有効な Facebook AppID です。

<amp-social-share type="facebook" attribution="[FBAppID]" width="60" height="44"></amp-social-share>

その amp-social-share ノードが失敗し、他の 3 つのノードが機能するのはなぜですか?

<head>また、これが必要かどうかわからない場合でも、これを持っています:

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

これはまだ建設中のものですか?

4

1 に答える 1

1

データ属性ではなく、属性属性を使用しているようです。

https://github.com/ampproject/amphtml/blob/master/extensions/amp-social-share/amp-social-share.md#simple-examples

この例は、属性を要素属性として指定することを示しています。

于 2016-03-21T19:09:57.383 に答える