1

facebook や twitter で自分のページの動的データを共有する方法はありますか?

このコードを静的データで試してみましたが、うまくいきましたが、動的に適用するとうまくいきません。

Twitter の場合:

<a href="http://twitter.com/share" 
data-url="http://your.url.com/yourdynamicpage" 
class="twitter-share-button" 
data-text="What should I share?" 
data-count="horizontal">Tweet</a>

フェイスブックの場合:

<a href="javascript:window.location=%22http://www.facebook.com/sharer.php?u=%22+encodeURIComponent(document.location)+%22&#38;t=%22+encodeURIComponent(document.title)" title="Share on Facebook..."><img src="/path/to/your/image/" width="12" height="12" alt="alt" /></a>

私は何を間違っていますか?

4

1 に答える 1

1

http://shantacreations.com/facebook_share_old/example_1/share.php/

はい、上記のリンクは機能したいように機能しています。

于 2012-10-09T07:55:16.873 に答える