java - Facebook4j Post Tracking Issue -


My application is a keyword tracker application that captures user feelings related to our business. The application was working fine but in the last two weeks it does not capture some relevant posts, however, when I directly use the Facebook Graph API, it occupied all the positions. Is there any blockage in this way? Since this application is in production environment, I am in a very serious position. Please be sufficient to advise me for further processing.

Thanks in advance, Hope Perera

  import facebook4j.facebook; Import facebook4j.FacebookException; Import facebook4j.FacebookFactory; Import facebook4j.Post; Import facebook4j.ResponseList; Import facebook4j.conf Configuration; Import facebook4j.conf.configurationBuilder; Public Class Men {Facebook Facebook = empty; Public Zero Start Stream () {Configuration Builder confBuilder = New Configuration Builder (); ConfBuilder.setOAuthAppId ("*******"); ConfBuilder.setOAuthAppSecret ("********"); ConfBuilder.setPrettyDebugEnabled (true); ConfBuilder.setHttpProxyHost ("******"); ConfBuilder.setHttpProxyPort (8080); ConfBuilder.setHttpProxyUser ("*******"); ConfBuilder.setHttpProxyPassword ("*******"); ConfBuilder .setOAuthPermissions ("read_stream, user_status, friends_status, email, publish_stream, id, name, first_name, last_name, normal"); ConfBuilder.setUseSSL (true); ConfBuilder.setJSONStoreEnabled (true); // Create configuration object configuration configuration = confBuilder.build (); FacebookFactory FBAFactor = new FacebookFactory (configuration); Facebook Faceback = FBF Try {Facebook.setOAuthAccessToken (facebook.getOAuthAppAccessToken ()); ResponseList & LT; Post & gt; Results = facebook.searchPosts ("kid_2"); For (Post Post: Results) {System.out.println (post.getMessage ()); }} Hold (FacebookException e) {e.printStackTrace (); }} Public static zero main (string [] args) {main main = new main (); Main.initiateStream (); }}  

public post search The graph has been deprecated with API v2. It is possible that you still use the v1.0 app, but this is guaranteed to work only till April 30, 2015.


Comments