是否可以通过Mobile Safari通过其自定义URL方案向Instagram发送标题/注释? [英] Is it possible to send a caption/annotation to Instagram via its custom URL scheme from Mobile Safari?
问题描述
我想允许我的移动网站的用户上传照片,在Mobile Safari中输入标签和标题,然后使用预先填充的图像,标签和标题打开Instagram.
I'd like to allow users of my mobile website to upload a photo, enter a tag and caption in Mobile Safari, then open Instagram with that image, tag and caption pre-populated.
基于此文档,可以预填充图像和标签,但是预填充标题的唯一提及是要在照片中包含预填充的标题,您可以将文档交互请求上的批注属性设置为NSDictionary,其中的NSDictionary在键"InstagramCaption"下包含NSString.
Based on this documentation, it's possible to pre-populate the image and tag, but the only mention of pre-populating a caption is "To include a pre-filled caption with your photo, you can set the annotation property on the document interaction request to an NSDictionary containing an NSString under the key "InstagramCaption."
我可以使用自定义URL,例如:instagram://media?id=999&tag?name=sweet_tag&InstagramCaption?caption='My sweet caption.'
来预填充图像,标签和标题吗?
Can I use a custom URL, something like: instagram://media?id=999&tag?name=sweet_tag&InstagramCaption?caption='My sweet caption.'
to pre-populate an image, tag and caption?
推荐答案
此功能确实存在,只是尚未将其添加到文档中.
This feature does exist, it just hasn't been added to the documentation yet.
从我们的下一个版本(2.3.0)开始,您将可以通过 摄像机URL挂钩的标题参数,如下所示:
Starting with our next release (2.3.0) you'll be able to pass in a caption parameter to the camera URL hook, like so:
instagram://camera?caption = hello
instagram://camera?caption=hello
确保其已正确进行URL编码(#应该为%23,依此类推)
Make sure it's properly URL-encoded (# should be %23, etc)
已提交给Apple,因此应在不久的将来淘汰.
Submitted to Apple, so should be out in the near future.
干杯, -Mike Krieger,Instagram联合创始人
Cheers, -- Mike Krieger Co-founder, Instagram
https://groups.google.com /forum/?fromgroups =#!topic/instagram-api-developers/0lsJyFcfYPw
这篇关于是否可以通过Mobile Safari通过其自定义URL方案向Instagram发送标题/注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!