iOS 9 - Facebook fails to open installed iOS app

不羁岁月 提交于 2019-12-09 12:57:45

问题


iOS 9 & Facebook question

Before iOS9, a Facebook post could successfully redirect an user to an installed app via short URL (like bet365://). Now, in iOS 9, bet365:// gives invalid link. From Safari it redirects fine, but not from Facebook browser. This is just an example, there are other apps that can't be opened from FB.

What do I need to do in order to open an installed iOS app from a Facebook post (in iOS9)?

PS: I understood that now, in iOS9, if Myapp1 wants to open Myapp2, it will need to populate info.plist with LSApplicationQueriesSchemes like this:

<key>LSApplicationQueriesSchemes</key>
<array>
<string>url_to_Myapp2</string>
</array> 

but it's strage to belive that Facebook will have to do the same with the apps he wants to open.

Many thanks!


回答1:


Just got a reply from Facebook.. So my assumption was correct, Facebook needs to update their own info.plist in order to open other iOS apps with short urls..

UPDATE: However, I've been digging a lot and found out that you can open your app from a Facebook post with AppLinks, which works perfect. Full documentation on applinks.org.

What Facebook doesn't mention is that you need scrape the website you modify, in order for changes to take effect. One way to do it is to copy paste the website address in https://developers.facebook.com/tools/debug/og/object/ and apply "Fetch new scrape information", otherwise it won't work.



来源:https://stackoverflow.com/questions/32695961/ios-9-facebook-fails-to-open-installed-ios-app

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