Is there a standard Facebook Java Api? - java

Is there a standard implementation in Java for the Facebook Api?
From what I read the http://code.google.com/p/facebook-java-api/ doesn't work.

There is no official Java API.
They had a nice list of all third party java libraries but they deleted that page and prohibited web spiders from accessing it so I can't even get cached version now (wtf is wrong with you facebook?)
RestFB is actually pretty much the library to go right now. It supports both old REST api and new OpenGraph stuff. Has lots of examples and actively developed.
That java library you posted was abandoned a year ago. No bugfixes or updates ever since. It works fine with old REST API but doesn't support new one.

Are you sure that it doesn't work? I'm using facebook-java-api, and haven't found any problem yet.
There also exists RestFB client, but it not looks like a mature library. And also it haven't maven support :(

Related

Java Wrapper for Mailchimp API v3.0

I just started working with the Mailchimp API. So far I have configured the open authentication using Node.js and Angular.js. I want to implement an export of customers (First name, Last name and Email) from my app to a Mailchimp list. I want to do this in a Java worker, so I started looking for a Mailchimp API wrapper for Java. So far I have managed to find ecwid-mailchimp wrapper, but it is for Mailchimp API v2.0 and it looks like the project is dead.
Is there an active implementation of a Java wrapper for Mailchimp API v3.0?
It does not seem a good idea to use the old API (v2.0) and a dead implementation in a new project.
The alternative is to do the implementation by myself, but it is a waste of time if someone has already done it.
MaleOrang is a new Java Wrapper for Mailchimp API v3.0. It is a replacement for ecwid-mailchimp from the same vendor.
After a lot of searching I found this project on github. It is incomplete, but I created a pull request with the OAuth and am currently working on batches.
AFAIK, there is no existing Java wrapper, but it shouldn't be too hard to do yourself. You'll want to look into the API v3 batch operations docs to make this as easy on yourself as possible.
Found one more Java wrapper library, relatively fresh, bananaj. At least I've found those API methods that were needed for me, but were missing in libraries from previous answers.
bananaj is amazing library I forked already or another way is calling the rest API https://mailchimp.com/developer/api/marketing/automation-email-queue/ , I was testing using postman and Java http library.

Can't find any working examples of using the official Google Translate Java API (rev41)

It took me about 5 minutes to use the Google Translate REST API from Javascript, NodeJS, WGET and Java via Sun's Jersey library, but I cannot find any working examples for the current version of the official Google Java Client (rev41), or how to configure it using Maven. I sat for an entire morning trying to work it out from the source code (and swearing a lot) to no avail. Working out the Maven stuff was easy enough but I cannot for the life of me work out how to use the Java API - a crazy situation as it took so little time using basic generic technology.
For reference - this is my Maven config:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-translate</artifactId>
<version>v2-rev41-1.20.0</version>
</dependency>
My bigger question to the lovely Google folk is - why is the Java library harder to implement than using straight REST? Surely the sole purpose of the Java library is to provide a wrapper that makes using Google Translate simpler, and there are only about 3 REST calls to wrap, how hard can it be? What exists now would appear to be the opposite: a number of web articles actually recommend using a thirdParty non-official Java library, or even Google's text-to-speech service (How to use Google Translate API in my Java application?). All of this suggests to me that this area needs some attention or should be thrown in the bin, it's not currently adding any value.
The second part of the question is not answerable, as it isn't specific and instead seems like a loaded question. I'll just answer the first part.
The Maven config can be found in the Translate documentation for the Java API Client. In the "Add Library to Your Project" section, click "Maven."
Although there is not an example specific to Translate, you can take a look at other samples, such as the CalendarSample. If there is a specific step that still isn't obvious please bring it up specifically, such as OAuth, constructing the Translate class, or knowing where to start. I'll also note that the Translate JavaDocs are linked to from the above documentation.

About using google client api

I am planning to write a native java application that can get some blogs by searching with a few words. And I know we can get some results by searching on google blog search. So I want to know if I can write such an application by using google blog search. But I found that google seems just offer a javascript API for its blog search. So could anyone tell me how to use google's blog search service in java?
If it's not possible, do you guys know some other services that can do similar thing?
Thanks a lot
Google's blog platform is Blogger, and it provides an API for working with the blogs on that platform. In addition, there are a number of client libraries for this API, including Java.
Here's some resources to help you get started:
Here you can download the Java client library for the Blogger API
Here is the documentation for the Blogger API in general.
You can see information on the different types of API calls you can make here.
And here is a link to the APIs-explorer for the Blogger API, where you can play around with its capabilities
If you're new to using the Google Java Client Libraries for accessing Google APIs, you may also want to look at the documentation for the client libraries in general, here
It looks like by default, the API only supports searching for posts in a given blog, not across all blogs, so you may need to do something clever to achieve your end goal (but it wouldn't be fun if it was given all away for free, right?)

Does anyone have the restlet samples from the "RESTful Web Services" book by Leonard Richardson and Sam Ruby updated to restlet 2.0?

I would like to run the samples, but they use deprecated API of Restlet and non existing API of db4o. In short, does not compile.
I am new to Restlet (and Java), so I really do not want to waste my time trying to fix the code. My hope is that someone has already done it.
So, my question is - has anyone upgraded the Restlet samples from the book to the most recent versions of Restlet and db4o?
The example code from this REST book is part of Restlet examples distribution. The code has been updated to use non-deprecated APIs:
http://restlet.tigris.org/source/browse/restlet/trunk/modules/org.restlet.example/src/org/restlet/example/book/rest/
However, it doesn't necessarily use the best Restlet practices, as it doesn't attempt to leverage the new Restlet API features added since version 2.0
For more recent documentation, I recommend the "Restlet in Action" that we are finishing wri

AppEngine social application

I started developing my application in AppEngine Java, however I noticed that Facebook has officially discontinued the support for the Java API and the third party API was last updated a year ago.
Does anybody use Java + Social plugins? How has it been going so far? Should I switch to Python, I'd not want to since, I'm not very great with Python and have written significant amounts of code in Java already.
I have been using facebook-java-api on Google App Engine for a year now. It does almost all I need it to do (get friends list, get photos, upload photos). It uses the old REST api but I have not seen a deprecation date for the methods I use.
I also use Apache HTTP Client to do some Graph API calls not available in the REST api (deleting a photo for example).
If you decide to use python, try a look to vikuit social. It runs over Google Appengine , it's open source ( GNU3) and perhaps it's a good base to your development.

Categories