Facebook社交插件注释直接链接时不显示? [英] Facebook Social Plugin Comments not shown when directly linked to?

查看:138
本文介绍了Facebook社交插件注释直接链接时不显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在我的网站上设置了Facebook社交插件评论,但是我有点麻烦。当我收到一条通知,表示有人评论了我评论的内容,如果我点击该链接,我没有看到任何评论,但是如果我重新加载页面,而没有?fb_comment_id = ...那么我可以看到评论。 >

例如:



http://www.5crideshare.jessepollak.me/rides/17?fb_comment_id=fbc_10150513336718064_21937866_10150513339773064&ref=notif&notif_t=open_graph_comment#f82002554



不显示任何评论,但



http://www.5crideshare.jessepollak.me/rides/17



显示评论。



任何可能导致此问题的想法?



非常感谢,



Jesse

解决方

由于假设的Facebook,它们是两个不同的页。当您将插件添加到页面时,请注意 data-href 值。
为同一页面设置 data-href 值常量,尽管可能需要使用具有额外查询字符串的不同URL。



当我查看你的页面来源,点击通知:

 < div class ='fb-评论'data-href ='http://www.5crideshare.jessepollak.me/rides/17?fb_comment_id = fbc_10150513336718064_21937866_10150513339773064& ref = notif& amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; 2''data-width ='500'>< / div> 
< / div>

在此页面上, data-href 应该没有不必要的查询字符串。它应该像这样清楚一样: http://www.5crideshare.jessepollak.me/rides/17


I just set up Facebook social plugin comments on my site, but I'm having a little trouble with them. When I get a notification saying that someone commented on something I commented on, if I click on that link I see no comments, but if I reload the page without the ?fb_comment_id=... then I can see the comments.

For instance:

http://www.5crideshare.jessepollak.me/rides/17?fb_comment_id=fbc_10150513336718064_21937866_10150513339773064&ref=notif&notif_t=open_graph_comment#f82002554

shows no comments, but

http://www.5crideshare.jessepollak.me/rides/17

shows comments.

Any ideas on what might be causing this?

Thank you very much,

Jesse

解决方案

Because Facebook supposes that they are two different pages. While you are adding the plugin to your page, pay attention to data-href value. Make your data-href value constant for the same page, although it may be requested with different URLs with extra querystrings.

When I look at your page source, clicked from notification:

<div class='fb-comments' data-href='http://www.5crideshare.jessepollak.me/rides/17?fb_comment_id=fbc_10150513336718064_21937866_10150513339773064&amp;ref=notif&amp;notif_t=open_graph_comment' data-num='{:posts=&gt;2}' data-width='500'></div>
</div>

On this page, data-href value should be without unnecessary querystrings. It should be like this same with clear one: http://www.5crideshare.jessepollak.me/rides/17

这篇关于Facebook社交插件注释直接链接时不显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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