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

标签 javascript jquery instagram

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.

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

希望对你有帮助。

关于javascript - 如何使用 jquery 在 Instagram 上分享图片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32064311/

相关文章:

javascript - jquery - 更改 css 属性并重复

ios - 在 ios 中的 instagram 中输入重定向 URI 时出现 "Enter a valid website"

javascript - 在 Phonegap/Cordova 中使用 Instagram API

javascript - 无法获取输出。返回代码 206。缺少值。

javascript - 在新创建的面上计算面法线

javascript - 如何从 Javascript 中的字符串中删除/替换 ANSI 颜色代码

python - 我可以使用 Instagram API 获取其他用户的个人资料吗?

javascript - Linq.Js Group By 计数

php - Bootstrap 切换复选框不会随请求一起发送

php - jquery中.toggle函数与.load函数结合使用