2

当用户尝试在 facebook mobile web 上共享 URL 时,有时页面会返回以下消息:“找不到您的链接”和手动插入 URL 的文本输入

  1. 有效的分享网址: https ://m.facebook.com/sharer.php?u=http://dishenvy.com/dish/pollo-garnachas-gran-electrica-brooklyn

  2. 共享 URL 不起作用: https ://m.facebook.com/sharer.php?u=http://dishenvy.com/dish/samgyupsal-hahm-ji-bach-new-york-

我正在使用的代码:

<a class="fb_share" name="fb_share" type="icon" share_url="<?php echo urldecode($shareUrl) ?>">                                               
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
4

4 回答 4

2

确保您传递的网址可供 Facebook 访问。不知道为什么,但他们的移动网站似乎验证了 url,但他们的非移动网站似乎并不关心。如果您有代码生成您传递给 facebook 的链接,并且主机对应于防火墙或专用网络后面的服务器(例如测试或开发服务器),则经常会发生此错误。

于 2014-03-31T17:41:36.290 回答
1

According to the debugger the two url example that you posted work the same:

So I don't know how to help you with that.

What I can tell you though is that you are using a deprecated api. The facebook "sharer" is no longer supported as it states here:

The Share button has been deprecated in favor of the Like button, and will no longer be supported. Please use the Like button whenever possible to drive maximum traffic to your apps.

And here:

What happened to the old Share button?

We deprecated the Share Button when we launched the Like button, because the Like button improves clickthrough rates by allowing users to connect with one click, and by allowing them to see which of their friends have already connected.

That may be a cause for the inconsistency you are experiencing. My advise to you is to stop using this deprecated api and move to the Like button.

于 2012-04-09T15:59:55.663 回答
0

我认为 facebook 检查您的共享页面是否在服务器上找到。您在服务器上找到的第一个 url(这意味着第一个 url 返回页面)。第二个 url 不返回页面。由于这个原因,第二个 url 返回空页面 facebook 返回此消息。“找不到您的链接”

点击链接:

  1. http://dishenvy.com/dish/pollo-garnachas-gran-electrica-brooklyn = 找到页面

  2. http://dishenvy.com/dish/samgyupsal-hahm-ji-bach-new-york- = 找不到页面

所以在脸书上分享正确的网址

于 2013-12-06T05:50:12.980 回答
-2

https://m.facebook.com/sharer.php?m2w&u=http://dishenvy.com/dish/samgyupsal-hahm-ji-bach-new-york-

对于移动视图,您希望将m2w添加到 url。

于 2013-12-07T08:25:46.297 回答