问题标签 [facebook-like]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
580 浏览

facebook - 在 Like Facebook 按钮中关闭喜欢我的网站的人数

我的网站上有一个连接到 Facebook 的 Like 按钮,并且工作正常。但是我可以删除喜欢我的网站的人数,并且只有当这个数字大于 50 时才使其可见?

谢谢

0 投票
3 回答
2437 浏览

facebook - 如何使用新的 facebook API 检索 like_count 的数量?

我正在为我的网站使用一个赞按钮,使用 iframe 版本从 facebook 页面获取它。我只想在这个数字大于 50 时才显示喜欢我网站的人数。我在想我可以使用 fql.query 来获取 like_count,如果大于 50 则显示它。我不想在开发人员页面中创建 Facebook 应用程序,所以我没有应用程序 ID 等。我所做的是:

但我不知道如何将结果存储在 PHP 变量中,如果最后我只能在我想要的时候显示它们。

我已经搜索了很多关于它的内容,但还没有找到任何东西,所以如果有人可以帮助我,我将不胜感激。

0 投票
1 回答
1185 浏览

jquery - 包含 iframe 的 JscrollPane 的问题

我正在创建一个带有可滚动内容区域的页面,其中必须有一个类似 facebook 的按钮和自定义滚动条。这不是问题 jscrollpane 和 facebook iframe 设置为 like 按钮。我在我拥有的所有浏览器上对其进行了测试并将其发送给客户端以供批准

我的客户使用的是 firefox 3.5.7,而我使用的是 3.6.10,我的客户发现了一个错误。基本上,当他滚动时,facebook like 按钮的 iframe 应该在文本后面(因为溢出被​​滚动隐藏),内容开始四处移动。它看起来就像在 iframe 所在的内容上滚动时停留了一秒钟,就像它滞后一样。

我已经检查以确保一个简单的 CSS 滚动区域可以正常工作并且确实可以。

这是一些简单代码的链接,可以重现问题(感谢 vitch):http: //jsfiddle.net/wpaflight/zRQ8z/

以前有没有其他人遇到过这个问题?

0 投票
2 回答
13161 浏览

facebook - AddThis button + Facebook Like button

I am trying to use AddThis button on a web page of mine, which you can share, like (facebook), and tweet (twitter) -

alt text

the AddThis code is pretty straight forward below,

but I don't understand - in the code above, where can I put the image or video url which I have uploaded and posted on my fb page? for instance the url below is the image from my facebook page that I want to track how many people like this picture through my website,

http://www.facebook.com/photo.php?fbid=10150115644909972&set=a.10150115644754972.329183.55239684971

I have read through the documentation on AddThis but it doesnt explain this at all! http://www.addthis.com/help/client-api#configuration-sharing

It points me to this, http://developers.facebook.com/docs/reference/plugins/like#

again, this is a Facebook plugin, no used within AddThis. If I am using the Like button from the Facebook API, then I cannot use the AddThis plugin above, can I?

furthermore, The Like button from Faebook API seems to work on the Facebook page, but not an individual picture or video I uploaded/ posted on my Facebook Page, for instance, I tried this on my localhost, the picture on my Facebook Page won't collect the number of likes even though I have clicked the Like button on my screen.

so my main doubt on the Like button itself - does it work on facebook only or does it apply to the individual picture/ video on my facebook page? I tried to find this answer from the facebook Like documentation but it doesn't explain anything about this.

it would be grateful if you have any idea. thanks!

0 投票
1 回答
1058 浏览

php - Facebook 喜欢按钮:如何防止人们意外“不喜欢”我的页面?

我想阻止用户点击他们喜欢的页面而不喜欢我的页面,因为我将它突出显示在我的网站标题旁边。我担心人们会不小心“不喜欢”我的页面,因为我已经点击过一次喜欢它。

到目前为止,我已经探索了一个 php 代理,因此我可以使用自定义 css 页面。其他人有什么想法吗?非 iframe facebook like 按钮怎么样?

0 投票
1 回答
1241 浏览

facebook - 用于重定向网站的 facebook like 按钮

我有特别产品画廊网站(比如说 example.com),每个产品都有一个“喜欢”按钮。“喜欢”按钮有 example.com/45 网址,它指向原始产品网站(比如说 superoffer.com)。问题是我的点赞按钮显示的是 superoffer.com “点赞”,而不是我的重定向网址点赞。我怎么能通过这个问题。

0 投票
1 回答
2499 浏览

facebook-graph-api - 找出谁是在 Facebook Like 按钮上喜欢我的页面的用户?

有没有办法找出 Facebook 上的用户(喜欢我的页面的人)是谁?

我查看了 Graph API 并完全迷失了:- http://developers.facebook.com/docs/api

最终,我希望能够从所有喜欢我的页面的用户中挑选一个用户并向用户发送消息,让他/她知道他/她赢了!

0 投票
1 回答
1950 浏览

facebook - Facebook Like 按钮不适用于子域

因此,我获得了子域 dot 站点名称 dot com 的 Facebook 应用程序 ID,在页面底部的 javascript 和诸如此类的内容中弹出,然后将按钮放在我想要在网站上的位置。“赞”按钮出现,将我识别为 Facebook 用户。精彩的。

但是当我点击“喜欢”按钮时,它不是喜欢 subdomain.sitename.com/blah,而是“喜欢”www.sitename.com/blah,因此会出现错误。

我已经硬编码了http://subdomain.sitename.com,使用了一个设置为 http:// subdomain dot sitename.com 等的变量。不管我做什么,它都以某种方式更改为 www dot sitename.com/blah

所以like按钮不起作用。关于问题可能是什么的任何建议?即使我使用 Facebook 的 lint,它仍然会抛出异常错误,说 www.sitename.com/blah 不起作用。

$facebooksite 包含子域 dot 站点名 dot com。其余的是特定视频的链接。然而由于某种原因,它仍然将 $facebooksite 更改为 www dot sitename dot com

代码在这里:

0 投票
4 回答
3134 浏览

facebook - Facebook Like 按钮共享根 URL 而不是页面

我过去正确使用了 Facebook Like 按钮(iframe 版本),但由于某种原因,这次它对我不起作用。我正在共享一个网页,例如http://sub.domain.com/default.aspx?foo=bar。当我查看源 HTML 时,iframe 中共享的 URL 正确显示http://sub.domain.com/default.aspx?foo=bar。当我检查 OG 元 URL 属性时,它是http://sub.domain.com/default.aspx?foo=bar(到目前为止还不错)。当我单击 Like 时,它​​共享http://sub.domain.com

其他人遇到过这个问题吗。就像我说的我以前用过这个。我不明白为什么其他人开箱即用,而这个不是。

0 投票
2 回答
4132 浏览

facebook - 如何从 Facebook 的“喜欢”按钮中捕捉动作

有没有办法捕捉点击 Facebook like 按钮的事件?我不想将我的应用程序与 Facebook 集成,只需要计算“喜欢”的点击次数。试过:

但没有任何运气。如果没有办法做到这一点,我可以在与 FB API 同步时计算特定页面的点赞数吗?