Automatically share to social platforms (e.g., Xiaohongshu, Douyin) via phone QR scan or NFC tap

Table of Contents

    Yesterday a business owner asked whether it’s possible to develop a feature where users can automatically share specified images and text to social platforms like Xiaohongshu and Douyin by scanning a QR code or tapping an NFC tag with their phone.
    The main use is for brick-and-mortar stores: when customers see a QR code or NFC tag in the store, scanning or tapping it lets them quickly share to their social platforms, increasing the store’s exposure and promotional reach.

    Principle analysis

    It seems to be an NFC feature: after tapping, a webpage opens containing various sharing links that, when clicked, invoke the local social platform clients.

    Testing

    DeepSeek quickly developed a test page and only tested Xiaohongshu’s sharing feature.
    But the tests showed it’s not that simple.

    The ability to “one-click jump to Xiaohongshu’s post page” requires using Xiaohongshu’s official sharing open platform, similar to WeChat Official Accounts’ sharing API, which allows specifying the shared content and images. However, Xiaohongshu stopped accepting integrations in September 2025 and has not reopened access since.

    Although it’s possible to invoke the phone’s system share sheet from a mobile web page and select Xiaohongshu from there, without a developer API you cannot prefill the share content; users must choose the image and text themselves, which defeats the purpose of automatic sharing.

    NFC tap sharing to Xiaohongshu

    Other approaches

    I found that Youzan implements this via a mini program: users scan the QR code to enter a Xiaohongshu mini program, which contains a share button that can automatically generate the share content and publish with one click.
    However, this requires registering a Xiaohongshu mini program and passing review, so the development cycle is relatively long.

    There isn’t much time, and I don’t want to continue testing other options for now, so I’ll leave it at that.

    Unexpected discovery

    During testing, I found that the page generated by DeepSeek is very beautiful—more attractive than the page generated by Gemini 3.1 Pro, with a more reasonable layout. It seems DeepSeek has strong capabilities in web design.

    About the Author 🌱

    I am a developer from Yantai, Shandong, China. If you have any interesting topics or software development needs, feel free to email me at: zhongwei.sun2008@gmail.com for a chat, or follow my personal public account "Elephant Tools", See more contact information