打开URL页面墙壁在UIWebView中不起作用 [英] Opening URL to facebook page wall does not work in UIWebView

查看:72
本文介绍了打开URL页面墙壁在UIWebView中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试显示我的Facebook页面墙( http:// www .facebook.com / PAGE_NAME?sk = wall )将其作为请求传递给UIWebView。除非我在我的应用程序UIWebView中登录到Facebook,否则该视图将打开通用页面(http://www.facebook.com/PAGE_NAME)。
即使我没有登录,相同的链接在Safari中也可以正常工作
如何使UIWebView显示墙页?

I am trying to display my facebook page wall (a link of the form http://www.facebook.com/PAGE_NAME?sk=wall) by passing this as a request to UIWebView. The view opens with the generic page (http://www.facebook.com/PAGE_NAME) unless I login to facebook inside my app UIWebView. The same link works fine in Safari even if I am not logged in. How can I make the UIWebView show the wall page?

推荐答案

Facebook通过计算机网络浏览器在移动设备上重定向Facebook页面。

Facebook redirects Facebook pages differently on the mobile device over the computer web browser.

您必须使用v值参数,但只是为了提醒你,Facebook可以随时更改此参数重定向,因此导致您的FB墙链接被拧紧。

You'll have to use 'v' value parameter, but just to warn you, Facebook can change this parameter redirection at any time and therefore resulting in screwing up your FB wall link.

ex) http:// m。 facebook.com/WescomCreditUnion?v=wall

这篇关于打开URL页面墙壁在UIWebView中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆