English 中文(简体)
来自移动网站的Facebook申请开机应用程序
原标题:Facebook apprequest opening app from mobile website

我有一个iphone 应用程序, 可以成功地将Facebook 应用程序请求发送到其他 FB 用户。 当 FB 用户点击 FB 移动iphone 应用程序中的应用程序请求通知时, 它会做预期的行为。 如果用户已经安装了应用程序, 它会立即打开应用程序。 如果应用程序没有安装, 它会将用户转到应用程序仓库 。

但是,如果一个FB用户从他们的iphone上查看移动网页(m.facebook.com)并点击通知,它总是会把他们转到应用程序商店,不管该应用程序是否安装或没有安装。我怎么能让行为与FB应用程序相同(如果安装了,打开应用程序,如果不安装,打开应用程序仓库)?

我在FB 应用程序设置中尝试过不同的移动网络 URL, 但这似乎没有效果 。

最佳回答

截至2012年5月25日,这是一个已知的错误,没有变通办法。 问题是从浏览器看,他们无法知道应用程序是否安装, 所以总是被转到应用程序商店。 由 FB 员工确认 。

问题回答

You can setup you mobile web url page so it does the smart timer appstore/app redirect. Described here: https://stackoverflow.com/a/1109200/383839 This works fine when you run it on m.facebook.com from mobile Safari. But the Facebook app browser fails on this because it tries to open the fb123456789:// scheme even when it doesn t exist - it cannot detect registered url schemes on the device due to ios restrictions. So you have the option to detect the Facebook browser and always show the appstore link instead of running the redirect javascript when the mobile web url is visited from the Facebook app.





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签