基本上我正在寻找 Instagram 的等价物:whatsapp://send?text=myspecifiedurlgoeshere.com
我在网上找不到任何关于此的信息。我在 facebook、facebook messenger、twitter、whatsapp 和电子邮件上做这件事没有问题
最佳答案
据我所知,没有针对直接消息的万无一失的 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
关于html - 使用指定的 href 作为正文文本打开 Instagram Direct Message 的网站链接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53600624/