Find 'posts viewed by user' facebook graph api FQL - facebook

I am trying to build an algo which is quiet similar to edgerank algo of facebook. I am kind of missing 'edges' part, which is about user view anyone's post and hence creates an edge in this. Is there a way to get the posts user has viewed irrespective of user liked/commented on them. Apparently I believe this is somewhat not feasible after doing some research on graph/fql. But, did anyone of you came across anything like this?

No, there is no way, via an API or any other method open to developers, to see what posts the user has or has not seen. The only thing you could go by is likes, comments, and shares. That's it.

Related

Reading user's posts to pages

For a given Facebook user, is there a possibility to read all posts that he's made to any pages? On FB web, these can be found in the activity log, but so far I couldn't find a method to get them via API.
Both /user/posts and /user/feeds only contain status and profile updates, not posts to pages. I know I can read /page/feed and use paging to find this user's posts for any page the user likes, but how about those he doesn't?
No, outside of FQL, there is nothing in the API that accomplishes this. I'd imagine this to be a pretty data intensive call with minimal use cases however, so I don't think this will be introduced anytime soon.

Facebook Graph API Get feed/posts is missing wall posts

I am building a basic app for a research project. Basically, we want to see if brain surgery alters behavior based on user's facebook posts and interactions. In other words, we are trying to read all wall posts from specific users.
My initial ideas was this: As long as the researcher is friend's with the subject, I can call https://graph.facebook.com/UID/posts and https://graph.facebook.com/UID/feed. A combination of those two should give me all relevant posts.
This works perfectly for some users, but for others, I'm only getting some random posts while missing many others. For some users, I'm not getting anything at all. I cannot find any pattern as to when posts are shown and when not. Does anyone have an idea what the problem could be and how to solve it?
I'm using the read_stream permission.
The most likely answer is that the user's friend disabled API platform access in their settings or locked down the privacy in some of their posts.

Share to multiple friends walls on Facebook from my website

I will try to be as clear as I can with my request but as I am still unsure as to what I am looking for I might come across as vague.
I was hoping I could get some help understanding the best approach to allowing a user to post a link with an attached image to the walls of a selection of their friends on Facebook. There are lot of approaches and answers out there but I am having trouble determining what is best.
Thanks for helping me see straight
Mark
Its really up to the user if your using the JS toolkit.
Click share under your question. Then when dialog pops up you get the option of where to share it.
So solution 1) leave it in the hands of the user.
If you want to force them into share on friends wall you will need to find something that does this or
DIY.
The DIY approach would be to have your site /app do oAuth authentication. Pass that to an oauth library and then list a users friends maybe with https://github.com/mbrevoort/jquery-facebook-multi-friend-selector.
Then issue the appropriate graph request to post to each one's time line.
The choice is yours but those are the 2 approaches I know of.

Why Facebook Graph Api or FQL does not work for high traffic pages?

I am having this problem. When I try to get the links posted by the user or page it works fine for all, except for high traffic users or pages like 'thebeatles' or 'ladygaya' or'machaeljackson' etc.
One thing we found out was that when you fetch links through graph api, it gives all the comments and evrythign back. In case of celebrity pages, there are thousands of comments, whcih are returned back, and cause to throw a curl exception.
So we switched using FQL and its better as it just provides the links, but in this case also FQL does not work for celebrity accounts. We just can't seem to understand why?
Did anyone come across this problem or know of any way to solve this?
Is it possible that you're trying to retrieve so many comments that it's timing out on Facebook's side?
Have you tried asking for a subset of the comments using offsets or timestamps? Check the 'searching' section of https://developers.facebook.com/docs/reference/api/ for more information
(disclosure: I work for Facebook in the Developer Relations team)

How to enable comments and likes for my posts made with my Facebook app?

When my Facebook app posts to the users stream those posts do not get links for Like and Comment. Other Facebook publishing apps, like Instagram, get these links.
I can't find it in my Facebook application's settings. Anyone knows how to do it?
(I think this is the same question as this one: Facebook : Like and Comment Functionality against Wall Post but I'm not sure.)
See Traroth's comment to get a more to the point description of what it is I'm asking about.
It seems Nathat Totten is right about how these links are defaults and that they are controlled by Facebook. There are three things that confuses this issue.
One is that Facebook Test Users behave a bit more special than you might think. Even when they are friends, they are not fully so. Making these default links turn up only for the user that posts them (for Test Users, mind you, I'm hoping it'll work all right for real users).
Another is the documentation for actions in the Facebook Graph API documentation for publishing Post objects:
A list of available actions on the post (including commenting, liking, and an optional app-specified action). read_stream. A list of JSON objects containing the 'name' and 'link'.
Which made me start to try find out how to include the commenting and liking links myself. I can't find this info anywhere, so maybe that changed without the above quoted documentation reflecting the change.
Anyway, if, indeed this is a Test User issue, then I don't need to do anything special to fix this. I'll try to remember to come back here when my (iPhone) app is ready for the real Facebook world and I get to see if it works in that environment or not.