首页 问答 正文

WordPress可以集成哪些社交媒体?

注册会员 / 悠然自学 / 2023-06-11/ 浏览 334 次

WordPress可以集成以下社交媒体:

  1. Facebook
    示例代码:使用Facebook官方API集成:

    <iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Fexample-page-123456789%2F&tabs=timeline&width=340&height=500&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true&appId=123456789" width="340" height="500" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowfullscreen="true" allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"></iframe> 
  2. Twitter
    示例代码:使用Twitter官方API集成:

    <a class="twitter-timeline" href="https://twitter.com/TwitterDev?ref_src=twsrc%5Etfw">Tweets by TwitterDev</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> 
  3. Instagram
    示例代码:使用Instagram官方API集成:

    <blockquote class="instagram-media" data-instgrm-captioned data-instgrm-permalink="https://www.instagram.com/p/123456789/">
    <a href="https://www.instagram.com/p/123456789/" target="_blank"></a></blockquote><script async defer src="//www.instagram.com/embed.js"></script> 
  4. LinkedIn
    示例代码:使用LinkedIn官方API集成:

    <script src="//platform.linkedin.com/in.js" type="text/javascript">
    lang: en_US
    </script>
    <script type="IN/FollowCompany" data-id="1234567"></script> 
  5. YouTube
    示例代码:使用YouTube官方API集成:

    <iframe width="560" height="315" src="https://www.youtube.com/embed/123456789" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> 
  6. Pinterest
    示例代码:使用Pinterest官方API集成:

    <a data-pin-do="embedPin" href="https://www.pinterest.com/pin/123456789/"></a>
    <script async defer src="//assets.pinterest.com/js/pinit.js"></script> 
  7. Reddit
    示例代码:使用Reddit官方API集成:

    <blockquote class="reddit-card" data-card-created="123456789">
    <a href="https://www.reddit.com/r/pics/comments/123456/example_post/" data-event-action="comments_click" target="_blank">Example post on /r/pics</a> from <a href="https://www.reddit.com/user/example_user/" data-event-action="author_click" target="_blank">u/example_user</a></blockquote>
    <script async src="//embed.redditmedia.com/widgets/platform.js" charset="UTF-8"></script> 
  8. TikTok
    示例代码:使用TikTok官方API集成:

    <blockquote class="tiktok-embed" cite="https://www.tiktok.com/@tiktok/video/123456789" data-video-id="123456789" style="max-width: 605px;min-width: 325px;">
    <section>
     <a target="_blank" title="@tiktok" href="https://www.tiktok.com/@tiktok">@tiktok</a>
     <p>Example TikTok video</p>
     <a target="_blank" title="♬ original sound - tiktok" href="https://www.tiktok.com/music/original-sound-6784674561957872386">♬ original sound - tiktok</a>
    </section>
    <script async src="https://www.tiktok.com/embed.js"></script>
    </blockquote> 
大家谈论
    我的见解