【问题标题】:Website link that opens Instagram Direct Message with the specified href as the body text?使用指定的 href 作为正文打开 Instagram 直接消息的网站链接?
【发布时间】:2019-05-05 03:39:50
【问题描述】:

基本上我正在寻找 Instagram 的等价物:

whatsapp://send?text=myspecifiedurlgoeshere.com

我在网上找不到任何关于此的信息。我在 facebook、facebook messenger、twitter、whatsapp 和 email 上都没有问题

【问题讨论】:

    标签: html instagram href social-media


    【解决方案1】:

    据我所知,没有用于直接消息的万无一失的 Instagram API,更不用说基于 url 参数的支持了。而且我想已经很久没有了。

    但是,您可以尝试使用 instagram-private-api 通过以下方式发送直接消息:

    const userId = await ig.user.getIdByUsername('username');
    const thread = ig.entity.directThread([userId.toString()]);
    await thread.broadcastText('Message from node');
    

    (来源:https://github.com/dilame/instagram-private-api/issues/792

    对于其他基于软件的集成 - https://maytapi.medium.com/instagram-dm-api-documentation-start-to-use-instagram-dm-api-with-4-s-84d147d7d361

    【讨论】:

      猜你喜欢
      • 2020-01-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-03
      • 2014-09-01
      • 1970-01-01
      • 2022-10-24
      • 1970-01-01
      相关资源
      最近更新 更多