是否有可能增加像按钮Facebook的上的Java应用程序? [英] Is it possible to add a facebook like button on a Java application?

查看:88
本文介绍了是否有可能增加像按钮Facebook的上的Java应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不想要一个弹出,我想实际的Facebook按钮一样,有任何人有任何想法,我会怎么做呢?它是对Facebook的政策?

I don't want a pop up, I want an actual Facebook like button, has anyone got any idea how I would go about it? Is it against Facebook policy?

感谢您

推荐答案

我不认为这是特定于Java东西。只要使用生成您使用HTML的任何方法,并把标签加载的Facebook的JavaScript SDK,并把一个FB:像元素在页面上

I don't think this is anything specific to Java. Just use whatever method of generating HTML you are using, and put the tags in to load the Facebook javascript SDK and put an fb:like element on the page.

目前没有API,通过它可以直接创建一个像 - 用户可以喜欢在Facebook上的东西是使用嵌入在标准方法的Like按钮code的唯一途径。

Currently there is no API by which you can create a Like directly - the only way a user may "Like" something on Facebook is using their Like button code embedded in the standard way.

您可以创建一个看起来像一个像,你只需要他们的许可在时间轴上你自己的行为。您可以使用OAuth来获取,谷歌可以帮助你找到的Facebook客户端的例子在Java中。

You can create your own actions on the timeline that look like a "like", you just need their permission. You can use OAuth to get that, google can help you find examples of Facebook clients in Java.

这篇关于是否有可能增加像按钮Facebook的上的Java应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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