Facebook sharer.php url参数被随机忽略

Facebook sharer.php url参数被随机忽略,facebook,facebook-graph-api,Facebook,Facebook Graph Api,我有一个带有智能url的站点,可以让你基于一些用户交互建立一个动态url。我使用sharer/sharer.php?u=someurl设计了一个按钮 编辑:**SomeUrl是一个缩短的url(使用bit.ly) 有时会忽略someurl,并将帖子链接到其他url(这是在网站的og:url上定义的url)。这是随机发生的 <a href="http://www.facebook.com/sharer/sharer.php?u=|u|" title="Share this page on f

我有一个带有智能url的站点,可以让你基于一些用户交互建立一个动态url。我使用sharer/sharer.php?u=someurl设计了一个按钮

编辑:**SomeUrl是一个缩短的url(使用bit.ly)

有时会忽略someurl,并将帖子链接到其他url(这是在网站的og:url上定义的url)。这是随机发生的

<a href="http://www.facebook.com/sharer/sharer.php?u=|u|" title="Share this page on facebook" sn="facebook" class="pop share-icon sn=facebook share-icon-facebook"></a>

href = href.replace('|u|',shareHref).replace('|t|',t).replace('|140|',t.substring(0,130))
window.open(href,'t','toolbar=0,resizable=1,status=0,width=640,height=528');

href=href.replace('u |',shareHref).replace('t |',t).replace('140 |',t.substring(0130))
window.open(href,'t','toolbar=0,resizeable=1,status=0,width=640,height=528');

有什么想法吗

所以,我终于切换到了FB.ui对话框。文档中说sharer.php只能使用?u参数工作,但我发现不可能修复上面提到的bug。如果你在和SalER斗争,考虑使用FBUI是很容易集成的。p>