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
上共享图像。
如何使用 jQuery
在 Instagram
上分享图片?
最佳答案
抱歉,您不能这样做,因为它的官方文档说不能通过 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.
所以到目前为止你不能这样做。
希望对你有帮助。
关于javascript - 如何使用 jquery 在 Instagram 上分享图片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32064311/