当用户已经看到页面已被LIKED时,Facebook LIKE按钮被隐藏 [英] Facebook LIKE button hiding when page is already LIKED by user

查看:185
本文介绍了当用户已经看到页面已被LIKED时,Facebook LIKE按钮被隐藏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果用户已经喜欢该页面,我试图在我的网站上创建一个Like按钮应该被隐藏的页面。如果我无法隐藏它,那么也许有一种方法可以在与已经喜欢该页面的用户呈现相似的按钮时获得回调。这样我就可以自己隐藏/显示iframe。

I'm trying to create a page on my site where the Like button should be hidden if the user already likes the page. If I can't hide it, then maybe there's a way to get a callback when the like button is rendered with a user who already likes the page. This way I can hide/reveal the iframe myself.

任何线索?

Howie

推荐答案

@Graphain,你为什么评论?您没有任何有效的输入。

@Graphain, why are you commenting? You have no valid input.

@其他,我一直在尝试,并通过查看某些标签的类的不透明度,但不再工作。您可以拨打/我/喜欢的呼叫,并通过返回的数组来查看每个名称或ID。

@Others, I have been trying this too and had it working by looking at the opacity of certain tag's classes but it no longer works again. You can make an api call to /me/likes and go through the returned array to look at each name or id...

希望有所帮助。

这篇关于当用户已经看到页面已被LIKED时,Facebook LIKE按钮被隐藏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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