How can I get a user's last status with the graph API/ FQL?
-
I'm trying to get the user's last status update. How can I do this with the facebook/graph api?
-
Answer:
using the Graph API: make a request to the following URL https://graph.facebook.com/%3CUSER ID>/feed?limit=1&access_token=<ACCESS TOKEN> or if an users session is active you can get his/her last status update by hitting this URL https://graph.facebook.com/me/feed?limit=1&access_token=%3CACCESS TOKEN> For information on how to get the ACCESS TOKEN and what permissions your application should have check this doc. http://developers.facebook.com/docs/reference/api/
Royston Olivera at Quora Visit the source
Other answers
Calling https://graph.facebook.com/me/feed is not the best way to retrieve last status posted by a user, because /user/feed return all type of posts and then you must handle response to filter only type == status posts and very often if you limit=1 maybe will return the last link pubblished and all this fail. Maybe the best way is to make a fql query like this in js sdk with a facebook session active and with user_status permission: var query = FB.Data.query('SELECT uid, status_id, message, time FROM status WHERE uid = {0} limit 1', "THE_USER_ID"); query.wait(function(rows) { console.log(rows) }); byebye
Dario BarilÃ
Related Q & A:
- How can I get the user manual for Jaguar xk8 1998 for free?Best solution by wexplain.com
- How can I find a person's last name?Best solution by Yahoo! Answers
- How do I get a King's Rock?Best solution by Yahoo! Answers
- How can I get a job like Samantha Brown's?Best solution by Yahoo! Answers
- How can I remove a picture's watermark using Matlab's image processing toolbox?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.