Facebook社交插件注释直接链接时不显示? [英] Facebook Social Plugin Comments not shown when directly linked to?
问题描述
例如:
不显示任何评论,但
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:
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&ref=notif&notif_t=open_graph_comment' data-num='{:posts=>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屋!