如何使用 jquery 在 Instagram 上分享图片

how to share images on instagram using jquery

window.open('https://www.facebook.com/sharer.php?u=' + encodeURIComponent(data) + '&t=' + encodeURIComponent(t), 'sharer', 'toolbar=0, status=0, width=626, height=436');

这里我们有 Facebook 共享数据的代码实现,但我们需要类似的代码来在 Instagram 上共享图像。

如何使用 jQueryInstagram 上分享图片?

抱歉,您不能这样做,因为它的官方文档说不能通过 API.

上传图片

请查看 Instagram API 文档: https://instagram.com/developer/endpoints/media/

见下文:

At this time, uploading via the API is not possible. We made a conscious choice not to add this for the following reasons:

  • Instagram is about your life on the go – we hope to encourage photos from within the app.

  • We want to fight spam & low quality photos. Once we allow uploading from other sources, it's harder to control what comes into the Instagram ecosystem. All this being said, we're working on ways to ensure users have a consistent and high-quality experience on our platform.

所以到目前为止你不能这样做。

希望对你有所帮助