“喜欢”控制非 Facebook 网页上的内容
目标:要创建一个仅在“喜欢”后消失的 Facebook“喜欢”按钮插页式广告,
我希望创建一个带有“喜欢”按钮的插页式广告,当用户单击“喜欢”时该按钮就会消失。这可能吗?我将如何实现这一目标?
Goal: To create a Facebook "Like" button interstitial that only disappears after a "Like"
I'm hoping to create an interstitial with a like button that disappears when a user clicks like. Is this possible - how would I go about accomplishing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你可以这样做。要检查用户是否已经喜欢您的页面,您可以执行以下操作:
但是,现在有一个错误破坏了此 API (http://developers.facebook.com/bugs/344295515590822?browse=search_4f34b7fc320fa8d06106500)。
你可以这样捕获用户:
You can do this. To check if a user has already liked your page you can do:
However, there is a bug right now that breaks this API(http://developers.facebook.com/bugs/344295515590822?browse=search_4f34b7fc320fa8d06106500).
You can catch a user like this:
使用 JavaScript SDK 并订阅“edge.create”事件。 https://developers.facebook.com/docs/reference/javascript/ FB.Event.subscribe/ 有一个例子。
不过在这样做之前要三思而后行,并进行AB测试。这是一个非常糟糕的用户体验,通常会导致很多用户流失
Use the JavaScript SDK and subscribe to the 'edge.create' event. https://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/ has an example.
However think hard before doing this, and do A-B testing. It's a pretty crappy user experience and you'll usually get a lot of drop off