Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get all posts on a friend's wall

I'm trying to find an API call (or set of calls) that will allow an app to get the posts that one would see if viewing a friend's wall. Either a REST call or a FQL call would do.

I tried /feed and /posts, compare the results with what I see on my friend's wall, and the results I get from it are incomplete.

I know this is possible because apps like Friendly are able to do it.

Any hints?

like image 683
undetected Avatar asked Aug 26 '11 03:08

undetected


People also ask

How do I see all posts on a friend's timeline?

Tap in the top right of Facebook. Scroll down to Friends and tap the name of the friend list. You'll see a feed with a series of posts from people on your list. This may include posts they've shared, posts they reacted to or posts they've been tagged in.

Why can't I see posts on my friends Facebook wall?

By default, Facebook always lets a user's friends see his or her posts. The most restricted standard privacy setting is "Friends Only," which only stops non-friends from seeing a Wall. If you are friends with someone and still cannot see that user's wall, it means your friend has customized his or her Wall privacy.

How can I see more friends posts on Facebook 2022?

Go to the Favorites option. When you add friends and Pages to your Favorites on Facebook, their posts will be shown higher in your News Feed. Choose whose posts you want to see first, from Facebook friends and “liked” Pages. You can click on the “ALL” button to choose whether to prioritize only friends or only Pages.

Why can I only see public posts on my friends wall?

Facebook provides a few built-in “Lists” for categorizing your friends. You can use these lists to control who you share with. One of the lists is called “Restricted”. When you add someone to your “Restricted” list they will only be able to see your “Public” content or posts of yours that you tag them in”.


1 Answers

Well, there's two different API endpoints for querying the posts of a given user; home and feed. Home includes posts from other people and pages (basically what you see when you log in and go to your home page) and feed is the stuff the user is sharing. Assuming your application has authenticated the user and they've allowed the read_stream permission, you can then make queries to the Graph API using their access token:

https://graph.facebook.com/{SOME_USER_NAME}/home?access_token={SOME_ACCESS_TOKEN}

and

https://graph.facebook.com/{SOME_USER_NAME}/feed?access_token={SOME_ACCESS_TOKEN}

The only hint I could give you is that "incomplete" is pretty standard with the Facebook API. You can only do the best you can with what they give you. Counts will be wrong. Data will be wrong. It's a fluctuating, moving target, so code to that fact.

like image 138
typeoneerror Avatar answered Oct 29 '22 15:10

typeoneerror