Can I get only the new Facebook comments since the last time I checked instead of all comments every time?

Right now I have an app that allows a user to schedule/post a Facebook post and then monitor the likes/comments. One of the problems I foresee is that currently I am pulling every single comment/like whether it's been processed or not. What I would like to do instead is be able to say 'Give me all the NEW comments since XYZdate/XYZcomment.' Is this currently possible?

            var accessToken = existingUserNode.Attributes["accessToken"].Value;
            var facebookAPIMgr = new FacebookWrapper.FacebookAPIManager();
            var msg = new FacebookWrapper.FacebookMessage()
                AccessToken = accessToken,
                FacebookMessageId = facebookPost.FacebookMessageId

            //Get Facebook Message Comments
            // Need to find a way to limit this to only new comments/likes
            var comments = facebookAPIMgr.RetrieveComments(msg);


You can do time-based pagination as part of your graph API query. If you keep a unix timestamp of when you polled things last, you can simply do{whatever}?since={last run}.

This worked when I was working heavily with the Graph API earlier this year, and is still around on the documentation, but considering how much Facebook loves to change stuff without telling anyone you may still encounter problems. So just a warning, YMMV.

Need Your Help

how do you open a PDF at a specific page from the command line? (OSX or Linux)

osx pdf command-line

I want to open a PDF document at a specific page from the command line, sort of like vim +n [file]. Is there any way to do that in OSX, with any PDF reader program?

Is it possible to stop Django from creating .pyc files, whilst in development?

python django linux

Is it possible to stop Django from creating the .pyc files? I know it's Python that creates them when modules are imported, but is there some way of turning them off?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.