I'm working on a project which uses Facebook Graph Api to collect information about the public posts. There is a need to update this data Real-Time when changes come to this posts. i have seen a real time update mechanism using call back url https://developers.facebook.com/docs/graph-api/reference/app/subscriptions/ and https://developers.facebook.com/docs/graph-api/real-time-updates/ .. But i didnt get any idea of doing this in java. Please somebody help me using an example.
facebook real time update in java example
2.9k Views Asked by din_oops At
1
There are 1 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in FACEBOOK-GRAPH-API
- Facebook Api - Albums/Photos/Comments
- Upload cover photo on facebook fan page
- Add extended permissions - Facebook
- How to get public facebook page's news feed contents without user authentication/access token?
- Facebook Graph API limit publishing to fan page
- Get the relationship status of user's Facebook friends
- Iterating over PagedList result retrieved from the Facebook Graph API
- wordpress : facebook comment
- Is it possible to Login to Facebook using Parse with publish_actions and email permissions?
- Facebook game invitable friends search box
- Encoding for html in Open Graph Facebook attributes
- graph api get public events with rails/koala works only for some sites
- Want to save facebook image into my rails app
- Calling FBSDKGameRequestContent: receiving the invite but not the notification in Facebook
- Facebook page redirecting based on current location
Related Questions in RESTFB
- Naive Bayes Sentiment Analysis of Facebook Post
- How to get another user's details using RestFB?
- How to extract on the public page owner's posts on restfb?
- RestFB get events in Java
- RestFB any idea how can i know the uploading progress of the video?
- Exception while fetching more than 25 posts restFb
- Facebook Graph API - Setting limit field in get request requires different Oauth key?
- How to get attached comment pictures in Facebook with restfb?
- Facebook api RestFB
- Rest fb: reactions and aliasing fields
- Upload video to Facebook, with RestFB
- Reading Facebook's Public Posts and User Profiles using Graph API in RestFB ?
- restFB AccessToken cannot be resolved to a type
- Using username in facebook graph api post
- Why Facebook Access Token Changed Each and Every Access?
Related Questions in FACEBOOK-JAVA-API
- Facebook API - How to get link to a comment?
- facebook java ads sdk how to retrieve "delivery, results,result_rate,cost_per_result", and breakdown by day
- Android ACTION_SEND Intent and Google Analytics - how do I know what they picked?
- I should want to publish post from by java web application (tomcat)
- How to set callback_url to facebook subscription to get facebook realtime updates using java graph api?
- Facebook FBui 'stream.publish' to single friend (help needed)
- automatically minimized chat tabs
- Facebook java business sdk 7.0.0 lib is missing AdsInsights class member data
- Does an app need to be public for Marketing API use only
- Get posts from a user using restfb
- Get access_token with java
- FacebookXmlRestClient NotSerializableException on Google AppEngine
- How to get facebook session key with facebook-java-api
- Batch Requests for Insights on Facebook Marketing API (JAVA)
- Combined FaceBook client and server side authenticaion
Related Questions in FACEBOOK-JAVA-SDK
- channelUrl and stale pages, how to avoid
- Get posts from a user using restfb
- Intermittent iFrame Height
- Use oAuth token with Azure MobileServiceClient.login()
- Looking for Java Model Classes for Facebook Graph API
- Facebook 3.0 issue with login
- FacebookSDK for Android: How to store the GraphObject from a Response as a member variable for later access
- How can i get access_token and then use it?
- Facebook login user/page identifier
- facebook real time update in java example
- Application ID is not registering in the graph
- Android:Facebook android application
- Facebook SDK library disabling
- Java Desktop Application which connects to Facebook
- Facebook post text on wall - access token always NULL
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Real time updates are available for page and user objects.Both of them requires the access token of the respective page or user.(For page you can check it using me/accounts or get it via giving page access permissions to your app).
Step 1: You will need a public ip where facebook will post the updates. Step 2: You need to setup your fb app to initiate real-time updates setup
Step 3:This will trigger facebook callback url validation.It can be a servlet or any other which will process the updates posted to callback url.Facebook will provide a challenge code in a get request which you need to resend.
}
Step 3: Add your application as a page tab to subscribe from real time updates from that page.you will need a page Access token
Step 4 : Facebook will post updates via post request to your call back url.