【问题标题】:Is it possible to directly share or post photo on instagram from our android app without launching instagram [duplicate]是否可以在不启动 instagram 的情况下从我们的 android 应用程序直接在 Instagram 上分享或发布照片 [重复]
【发布时间】:2017-06-21 12:58:49
【问题描述】:

我想直接将照片发送到 Instagram 而不启动它。有可能吗?

 File file = new File("/mnt/" + path);
         Uri uri = Uri.fromFile(file);
                Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
                        shareIntent.setType("image/*");
                        shareIntent.putExtra(Intent.EXTRA_STREAM, uri);
                        shareIntent.setPackage("com.instagram.android");
                        context.startActivity(shareIntent);

【问题讨论】:

标签: android


【解决方案1】:

截至 2017 年 6 月 21 日,Instagram 没有任何 API 或方法可用于在不打开应用的情况下将图像发布到 Instagram。但是,您可以从以下链接中找到无需打开 Instagram 即可使用的其他 API 端点:

https://www.instagram.com/developer/endpoints/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-12-16
    • 1970-01-01
    • 2021-04-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多