如何在不使用Facebook点赞按钮的情况下触发Facebook

如何在不使用Facebook点赞按钮的情况下触发Facebook

本文介绍了如何在不使用Facebook点赞按钮的情况下触发Facebook的点赞操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试由访问者(如果他们已登录到Facebook)从用户单击我网站上的按钮来触发对URL的赞"操作.我不想嵌入"Facebook之类"按钮,否则用户将不得不执行两个单独的操作(例如,单击我的按钮,然后单击"Facebook之类"按钮).有办法吗?

I am trying to trigger the "Like" action to a url by the visitor (if they're logged into facebook) from the user clicking on a button that's on my site. I don't want to embed the facebook like button otherwise the user would have to take two separate actions (e.g. click on my button AND click on the facebook like button). Is there a way to do this?

推荐答案

没有办法做到这一点,一旦发现,就不会被Facebook惩罚.

There is no way to do this that won't get you penalized by Facebook if they find out.

这是为了防止点击劫持和蠕虫.

This is intentional to prevent clickjacking and like-worms.

唯一的选择是创建一个Facebook App,让用户有权在其墙上写东西并喜欢,然后使用Facebook API直接喜欢您的页面.但是,这将比上述步骤多得多.

The only alternative would be creating a Facebook App, have the user give you the right to write to his wall and like and then use the Facebook API to directly like your page. However this would be many more steps than the above.

像Facebook"按钮具有许多变体.最简单的方法是从其中选择最适合您的设计的一个,然后用它替换您的按钮.

The Facebook like button features quite a few variations. The easiest way would be to pick the one among them that fits your design best and replace your button with it.

这篇关于如何在不使用Facebook点赞按钮的情况下触发Facebook的点赞操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-26 20:53