How to replace fql in v2.2 for this request? - facebook-fql

How can I retrieve fan page's comments with graph api v2.2 ?
Actually, I use FQL to retrieve comments of the posts lastly updated in a page since a date. For that I use update_date in the reques's filter.
Fql will be obsolete in V2.2. How can i substitute this with graph api ?
THank you very much for your help.
Reda.

Related

How do i get latest comments without using FQL with the help of graph API?

I am looking to get the latest comments for the Facebook page which I have created, I can fetch it using FQL, but now I don't want to use FQL Because it'll be Deprecated after few months, so I need to Do it through Open Graph API,
Can anybody help me out here?
Help will be appreciated.
https://developers.facebook.com/docs/graph-api/reference/v2.2/page/feed
/{page-id}/tagged shows the posts that this page was tagged in and the 'posts to page'
...if you mean the user posts. If you want to get the latest comments to page posts, you need to get the latest posts with /page-id/feed first and use the /post-id/comments endpoint for each one. Or easier: /page-id/feed?fields=comments
If you need older entries, you need to use paging: https://developers.facebook.com/docs/graph-api/using-graph-api/v2.2#paging

How to read Facebook Comment based on updated time using Graph API

How to read Facebook comments based on updated time through Graph API?.
I was using FQL to fetch the comments but, FB recently announced that FQL are not part of V2.1. So I need to use Graph API.
Is there any way I can fetch the comments based on updated_time?
My query was like this:
$fqlarray['getPhotoIDComments'] = "
SELECT object_id
FROM comment
WHERE (object_id in (
SELECT object_id FROM photo
WHERE owner='". $fqlvals['owner']."'
AND modified >='" . $fqlvals['modified'] . "'
LIMIT 10000)
)
ORDER BY time DESC
LIMIT 10000";
Thanks,
Suresha Posavalike
If you have a Graph API v2.0 app, you can continue to use FQl until August 7th, 2016. Currently, there's no equivalent in the Graph API as far as I know.

FQL get posts from stream on updated_time, need to find equivalen Graph API

FQL will be obsolete in API 2.1. If any user creates a new APP, then the user is forced to use API 2.1 features, as a result, I need to remove all FQL and replaced with Graph API to server the new users who create a new app.
Here is the quesion, We use FQL to fetch all posts on wall based on updated_time, and then we can fetch all newly comments reply to these posts on the page. This is the way we can fetch all the newer comments since last update. the FQL syntax look like this.
https://graph.facebook.com/v2.0/fql?q=SELECT post_id, comment_info FROM stream WHERE source_id = ' owner ' and updated_time >=' since
Does any one know the equivalent feature in Graph API. I have been looking documents but unable to find it. Please help in coming out an alternate approach to achieve the same functionality, Thanks.
There's unfortunately no equivalent in the Graph API. The since request parameter is relative to the created_time AFAIK.

Facebook - graph api 2.x - post missing user_likes field

With the 2.x graph api version, access will be removed to fql.
We were using fql to retrieve, from the likes table, if a user have liked a specific post.
How to perform this check now ?
Is it a chance that the post object would be quickly updated with a "user_likes" field as into the comment objetc as?
Cheers
Currently, it looks like the only solution is to go over all the likes and look if the page/user has liked the post manually. :-/
Hope FB will have something for this in next versions of the graph api

Get access to photos' tags on Facebook with Graph API

It's possible to get access for tags on friends' photo from facebook app? Lets assume I have friends_photos permission.
edit:
If yes, how to do it using Graph API? How would I know on which photo is tag I have got from Graph API?
FQL the photo_tag table.
You can graph FQL with:https://api.facebook.com/method/fql.query?query=QUERY
Read more on documentation.
Yes,
take a look at:
photos.getTags // Returns the set of user tags for all photos specified.
more at:
http://developers.facebook.com/docs/reference/rest/photos.getTags/