可以在iPhone网页中打开Instagram,Facebook,Twitter的URL Schemes收集汇总

可以在iPhone网页中打开Instagram,Facebook,Twitter的URL Schemes收集汇总
URL Scheme是为方便app之间互相调用而设计的。使用它可以实现类似于三方功能,比如支付、搜索跳转、导航等等跨APP功能, 苹果就使用了URL Scheme来实现这些功能。通过各个APP设计的符合苹果的统一规范的URL Scheme,系统就会自动去调用相关的APP来完成你的请求。本文收集了国外很火的几个APP(Instagram, Facebook, Twitter)的相关iPhone URL Schemes,如下:

Instagram

打开Instagram拍照位置:instagram://camera
打开instagram TAG: instagram://tag?name=FOTOR
打开instagram APP:  instagram://app
打开instagram 媒体页面:instagram://media?id=434784289393782000_15903882   
打开instagram 用户主页:instagram://user?username=1234567lflf     
打开instagram Location:   instagram://location?id=1     

参考文档:http://instagram.com/developer/mobile-sharing/iphone-hooks/ 
                http://stackoverflow.com/questions/26124361/does-the-latest-instagram-ios-app-support-caption-in-url-scheme

Facebook

facebook:
    fb://profile/ID
    fb://page/mypage

facebook://

facebook:/chat
facebook:/events
facebook:/friends
facebook:/inbox
facebook:/info
facebook:/newsfeed
facebook:/places
facebook:/requests
facebook:/wall

fb://

fb://root
fb://feed
fb://feed/{userID}
fb://profile
fb://profile/{userID}
fb://page/{id}
fb://group/{id}
fb://place/fw?pid={id}
fb://profile/{#user_id}/wall
fb://profile/{#user_id}/info
fb://profile/{#user_id}/photos
fb://profile/{#user_id}/mutualfriends
fb://profile/{#user_id}/friends
fb://profile/{#user_id}/fans
fb://search
fb://friends
fb://pages
fb://messaging
fb://messaging/{#user_id}
fb://online
fb://requests
fb://events
fb://places
fb://birthdays
fb://notes
fb://places
fb://groups
fb://notifications
fb://albums
fb://album/{%s}?owner={#%s}
fb://video/?href={href}
fb://post/{postid}?owner={uid}¹
Sorry if I missed some... only played with a handful of them in the emulator to see if they actually work - a bunch of them will cause the Facebook application to crash.

如:fb://profile/265860730168745

Twitter

twitter://post?url=https://twitter.com/amazon
twitter://post?url=https://twitter.com/fotor_com

twitter://status?id=12345
twitter://user?screen_name=lorenb
twitter://user?id=12345
twitter://status?id=12345
twitter://timeline
twitter://mentions
twitter://messages
twitter://list?screen_name=lorenb&slug=abcd
twitter://post?message=hello%20world
twitter://post?message=hello%20world&in_reply_to_status_id=12345
twitter://search?query=%23hashtag

tweetie:///user?screen_name=jessicaalba
twitter:///user?screen_name=jessicaalba

参考:http://wiki.akosma.com/IPhone_URL_Schemes

the end