Facebook 网址随机无法访问
我确信任何使用过 Facebook 的人都遇到过评论插件等 url 无法访问的问题。
我最初设法通过使 url 转到 facebook 应用程序页面而不是托管页面来解决这个问题,认为 facebook 能够找到自己,并使用查询字符串修改 url,该字符串可以在内部将它们重定向到正确的内容。例如,“app.facebook.com/myApp/?myAppP=videos&myAppId=0001”首先会加载 facebook 应用程序页面,然后重定向 iframe 以显示视频页面并播放视频 0001。
这起初效果很好,但似乎变得有点不可预测。我有一个不同视频的列表,所有视频都使用相同的 url,除了“myAppId”不同,因此加载了正确的视频。然而,虽然“评论”和“点赞”插件对大约 1/3 的人来说工作正常,但另外 2/3 的人则显示“url 无法访问”。我看不出有效的网址和无效的网址之间没有任何关联。它看起来完全是随机的,但起作用和不起作用的总是同一个。
这让我彻底难住了。有什么想法吗?
I'm sure anyone who has worked with Facebook has encountered the url unreachable problem with the comments plugin and alike.
I managed to get around this initially by making urls go to the facebook app page rather the hosted page, figuring facebook would be able to find itself, and ammended the url with a query string which could internally redirect them to right content. For example "app.facebook.com/myApp/?myAppP=videos&myAppId=0001" would first of all load the facebook app page then redirect the iframe to show the videos page and play video 0001.
This worked great at first but seems to have become a little unpredictable. I have a list of different videos, all of which use the same url except that the "myAppId" is different so the correct video is loaded. However whilst the "comments" and "like" plugins work fine for about a 1/3 of them, the other 2/3 show the "url unreachable". I can see no correlation between the urls that work and those that don't. It seems completely random, but it is always the same one that do and don't work.
This has got me completely stumped. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试在应用程序设置中禁用沙箱
try to disable sandbox on app settings