Is it possible to send a caption/annotation to Instagram via its custom URL scheme from Mobile Safari?

落爺英雄遲暮 提交于 2019-12-21 06:03:13

问题


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.

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."

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?


回答1:


This feature does exist, it just hasn't been added to the documentation yet.

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

Make sure it's properly URL-encoded (# should be %23, etc)

Submitted to Apple, so should be out in the near future.

Cheers, -- Mike Krieger Co-founder, Instagram

https://groups.google.com/forum/?fromgroups=#!topic/instagram-api-developers/0lsJyFcfYPw



来源:https://stackoverflow.com/questions/12586775/is-it-possible-to-send-a-caption-annotation-to-instagram-via-its-custom-url-sche

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!