Facebook分享“可点击”的网址链接问题 [英] Facebook share 'clickable' url-link issue

查看:253
本文介绍了Facebook分享“可点击”的网址链接问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





正如你可以看到nr 1.不可点击,但nr 2和3是。
有时它是可点击的,而其他时候不可以。 (随机化)



我想要的是所有的共享链接都不像nr 1那样可点击。



如何解决这个问题?我被困了几天。



我的PHP代码:

 < script src =http://static.ak.fbcdn.net/connect.php/js/FB.Sharetype =text / javascript>< / script> 


 < li class =icon share_facebook lid =facebookshare>< a name =fb_sharetype =buttonshare_url =http://www.smartnet7.com/promo .php?id_promo =<?php echo $ id_promo?>& username =<?php echo $ username?>target =_ blank>< / a> < /锂> 

我希望有些身体可以帮助我!

解决方案

问题可能在于您正在尝试分享的页面。如上述评论中所述,您可以通过Facebook Linter查看同一页面的链接。为了达到一致性,您可能希望按照 http://developers.facebook .com / docs / opengraphprotocol /



在您的情况下,Facebook看起来像是填充您的网页网址的问题,因此您可能希望包含< meta property =og:urlcontent =您的网页的完整网址/> < head> < / head> 您的页面中的标签。即使您的网页可以单独确定,但Facebook建议您添加这些标签以避免任何不一致。


I have a problem with clickable url-link in Facebook.

As you can see nr 1. is not clickable but nr 2 and 3 are. Sometimes it is clickable and other times not. (randomize)

What I want is that all the share links are not 'clickable' like nr 1.

How can I fix this? I'm stuck for several days.

My php code:

<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>


<li class="icon share_facebook l" id="facebookshare"><a name="fb_share" type="button" share_url="http://www.smartnet7.com/promo.php?id_promo=<?php echo $id_promo?>&username=<?php echo $username ?>"target="_blank"></a> </li>

I hope some body can help me!

解决方案

The problem might be with the page that you are trying to share. As mentioned earlier in the comments above, you may check the same page's link by Facebook Linter. To achieve a uniformity you may want to include the Opengraph meta tags as recommended by Facebook http://developers.facebook.com/docs/opengraphprotocol/

In your case it looks like an issue with Facebook populating your page url so you might want to include <meta property="og:url" content="your page's complete url"/> within the <head> </head> tags in your page. Even though this url can be determined from your page alone but Facebook recommends you to include these tags to avoid any inconsistency.

这篇关于Facebook分享“可点击”的网址链接问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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