Opening URL to facebook page wall does not work in UIWebView

强颜欢笑 提交于 2019-12-07 17:33:35

问题


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?


回答1:


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

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



来源:https://stackoverflow.com/questions/8374601/opening-url-to-facebook-page-wall-does-not-work-in-uiwebview

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