touch.facebook.com on iPhone giving me “Entity 'nbsp' not defined”

我的未来我决定 提交于 2019-12-11 07:01:11

问题


Just as I found a way to access my app's profile page on touch.facebook.com, thanks to logan and this url format...

http://touch.facebook.com/profile.php?id=myappid

...I ran into this new problem. It worked fine for a while, and then all of a sudden for no apparent reason, instead of my app profile, iOS Safari only shows a red warning box telling there's an error called "Entity 'nbsp' not defined".

I Googled it and found out it's a common XHTML error that's mostly ignored by everyone except XML strict browsers – like Apple's Safari. Ok, so there's the problem – solution: just convert my non-breaking spaces to XML entities.

The only downside is, they're not my nbsp's – for sure I had no need to use either HTML or XML markup in what little text I have in my app description etc.

So, it's got to be touch.facebook.com itself, right? If this is correct, I wonder if there's any way to work around this problem?

Or, is falling back once again to the plain old m.facebook.com version my only option? I sure would like to use the touch version if possible, since it works and looks so much better than m.facebook.com.

This is so weird, Facebook sharing is just 5% of my iPhone app's functionality, and yet it seems to be taking 50% of my overall development time. What's up with that?


回答1:


Ok, I found Facebook's (old) announcement from march 2011, stating the sites will be unified to a single address: m.facebook.com. I couldn't find the official FB announcement again, so here's a third party news: http://www.allfacebook.com/facebook-unifies-mobile-site-for-250-million-users-2011-03#idc-container

So, I'll just use the m.facebook.com even if it's a lot duller. Questions still remain, though: why is touch.facebook.com still there? Why is it still providing a different looking UI than m.facebook.com and not just another domain name for the same, unified site? Whatever is 0.facebook.com? Why do I need to google for snippets of info and 3rd party rumors for hours to know what url to use to access Facebook mobile? How can FB customer/developer communication suck this bad?

[edit: minor typo corrections]



来源:https://stackoverflow.com/questions/7960373/touch-facebook-com-on-iphone-giving-me-entity-nbsp-not-defined

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