<p>I have looked in vain for a good example or starting point to write a java based facebook application...  I was hoping that someone here would know of one.  As well, I hear that facebook will no longer support their java API is this true and if yes does that mean that we should no longer use java to write facebook apps??</p>

[{'answer_id': 62510, 'author': 'Chris B', 'author_id': 1684155, 'author_profile': 'https://Stackoverflow.com/users/1684155', 'pm_score': 3, 'selected': False, 'text': '<p>Facebook stopped supporting the official Java API on 5 May 2008 according to their <a href="http://developers.facebook.com/blog/post/106" rel="nofollow noreferrer">developer wiki</a>.</p>\n\n<p>In no way does that mean you shouldn\'t use Java any more to write FB apps. There are several alternative Java approaches outlined on the wiki.</p>\n\n<p>You might also want to check <a href="http://code.google.com/p/facebook-java-webapp/" rel="nofollow noreferrer">this project</a> out; however, it only came out a few days ago so YMMV.</p>\n'}, {'answer_id': 62554, 'author': 'David Webb', 'author_id': 3171, 'author_profile': 'https://Stackoverflow.com/users/3171', 'pm_score': 3, 'selected': False, 'text': '<p>There\'s a community project which is intended to keep the Facebook Java API up to date, using the old official Facebook code as a starting point.</p>\n\n<p><a href="http://code.google.com/p/facebook-java-api/" rel="noreferrer">You can find it here</a> along with a Getting Started guide and a few bits of sample code.</p>\n'}, {'answer_id': 545712, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': '<p>I write an <a href="http://programmaremobile.blogspot.com/2009/01/facebook-java-apieng.html" rel="nofollow noreferrer">example using facebook java api</a>\nIt use FacebookXmlRestClient in order to make client request and print\nall user infos\n<a href="http://programmaremobile.blogspot.com/2009/01/facebook-java-apieng.html" rel="nofollow noreferrer">http://programmaremobile.blogspot.com/2009/01/facebook-java-apieng.html</a></p>\n'}, {'answer_id': 7182834, 'author': 'Vineet', 'author_id': 369862, 'author_profile': 'https://Stackoverflow.com/users/369862', 'pm_score': 0, 'selected': False, 'text': '<p>You might want to try <a href="http://www.springsource.org/spring-social" rel="nofollow">Spring Social</a>. It might be limited in terms of Facebook features, but lets you also connect to Twitter, LinkedIn, TripIt, GitHub, and Gowalla. </p>\n\n<p>The other side of things is that as Facebook adds features some of the old API\'s might break, so using a simpler pure FB api (that you can update when things don\'t work) might be a good idea.</p>\n'}, {'answer_id': 7411318, 'author': 'stickfigure', 'author_id': 635982, 'author_profile': 'https://Stackoverflow.com/users/635982', 'pm_score': 1, 'selected': False, 'text': '<p>BatchFB provides a modern Java API that lets you easily optimize your Facebook calls down to a minimum set:</p>\n\n<p><a href="http://code.google.com/p/batchfb/" rel="nofollow">http://code.google.com/p/batchfb/</a></p>\n\n<p>Here\'s the example taken from the main page of what you can effectively do in a single FB request:</p>\n\n<pre><code>/** You write your own Jackson user mapping for the pieces you care about */\npublic class User {\n    long uid;\n    @JsonProperty("first_name") String firstName;\n    String pic_square;\n    String timezone;\n}\n\nBatcher batcher = new FacebookBatcher(accessToken);\n\nLater&lt;User&gt; me = batcher.graph("me", User.class);\nLater&lt;User&gt; mark = batcher.graph("markzuckerberg", User.class);\nLater&lt;List&lt;User&gt;&gt; myFriends = batcher.query(\n    "SELECT uid, first_name, pic_square FROM user WHERE uid IN" +\n    "(SELECT uid2 FROM friend WHERE uid1 = " + myId + ")", User.class);\nLater&lt;User&gt; bob = batcher.queryFirst("SELECT timezone FROM user WHERE uid = " + bobsId, User.class);\nPagedLater&lt;Post&gt; feed = batcher.paged("me/feed", Post.class);\n\n// No calls to Facebook have been made yet.  The following get() will execute the\n// whole batch as a single Facebook call.\nString timezone = bob.get().timezone;\n\n// You can just get simple values forcing immediate execution of the batch at any time.\nUser ivan = batcher.graph("ivan", User.class).get();\n</code></pre>\n'}, {'answer_id': 10020964, 'author': 'Lincoln', 'author_id': 202007, 'author_profile': 'https://Stackoverflow.com/users/202007', 'pm_score': 0, 'selected': False, 'text': '<p>This tutorial will literally step you through everything you need to do: <a href="http://ocpsoft.org/opensource/creating-a-facebook-app-setup-and-tool-installation/" rel="nofollow">http://ocpsoft.org/opensource/creating-a-facebook-app-setup-and-tool-installation/</a></p>\n\n<p>It comes in 3 parts. The other 2 are linked from there.</p>\n'}]
['https://Stackoverflow.com/questions/62433', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6788/']