Is there a way to get Recent Activity using Graph API or FQL ? I'm talking about information that is available at this location: http://www.facebook.com/vanityname/allactivity?filter_onlyme=on
I coulnd't find anything in FB API documentation (not surprisingly). Scraping it from the web-site looks complicated as well because it's fetched by calling http://www.facebook.com/ajax/pagelet/generic.php/TimelineProfileAllActivityPagelet which returns very hard to parse content.
In case you guys wondering FQL that I tried is select post_id,actor_id,created_time,message,description,xid from stream where source_id = me()
There is no way to get this information in the API. In addition there is no documentation listed for this either at https://developers.facebook.com
Related
I know there are several related answers on SO, but none seem to answer my question.
I would like to know if there is way to get the number of likes for a URL, using Graph API 2.2.
I know how to obtain this info via FQL or REST API, but those are deprecated.
https://graph.facebook.com/?ids=some_url
This returns the number of "shares", which is a total of like + shares + whatever. I need only the number of likes.
https://graph.facebook.com/some_opengraph_id/likes?summary=true
This returns the number of likes, but that total seems to be much lower than what a query on FQL link_stat table would return. Also /likes returns a list of likes, but it doesn't seem to be a complete list.
So is it possible to do this via Graph API or only FQL / REST support this?
Thanks in advance!
I encountered the same behavior, but unfortunately afaik there are no other options currently. If you have a v2.0 app, you can continue to use FQL until August 7th, 2016.
I'm trying to migrate from FQL to Graph api and I'm running into some issues while trying to fetch unpublished posts from a page as they're not showing up.
This is the FQL:
select description,actor_id,app_data,app_id,attachment,comment_info, created_time,feed_targeting,likes,message,permalink,post_id,privacy,share_count,source_id,targeting,type,updated_time,is_published,scheduled_publish_time
from stream where source_id="{page-id}" and (is_published=0 or is_published=1)
ORDER BY created_time
DESC LIMIT 250
And this is what I have now:
{page-id}/feed?fields=id,is_published,scheduled_publish_time,from,description,message,picture,link,name,caption,icon,privacy,type,status_type,object_id,created_time,updated_time,feed_targeting,shares,likes.limit(1),comments.limit(1),attachments&limit=250
The result set from FQL return several post for which is_published = false, while none of them show up with the api call. Obviously, I'm using the same access token for both. I've tried adding some more fields, removing some fields, making the call only for the promotable posts, but no luck. Am I missing something?
EDITED
There's a bug reported on Facebook regarding this in case anyone wants to subscribe:
https://developers.facebook.com/bugs/277633459027605/
It has been confirmed that this is a bug.
https://developers.facebook.com/bugs/277633459027605/
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.
I need to get a page's posts. But only page's posts, I don't want to get users posts on that page .For example
673049752787143/feed returns me https://www.facebook.com/147078515339869/posts/666313296749719 this post too. But I don't need this. Is there a way of doing this ?
I found my answer./{page-id}/posts shows only the posts that were published by this page.This is what I am looking for. Thanks.
This FQL should give you the info you want:
select post_id, message, attachment from stream where source_id="147078515339869" and actor_id="147078515339869"
As far as I know there's no way to do this with normal Graph API requests.
I was successfully able to get the RSS feed of a page in FB using this URL.
https://facebook.com/feeds/page.php?id=PAGE_ID_HERE&format=rss20
It returns values in RSS format. Then using regular NSXMLParser methods or some so parsing protocols, I was able to parse them.But unfortunately it returns all the details of the page, such as Events, notes and etc.
I would like to get the events only. It is stated here, we can achieve it using Graph API once we obtain the general access token. My question is, can't we simply get the RSS feed for events in facebook page like the URL above? Please advise. Thank you.
It looks like the FB API and all RESTful methods of accessing data from Facebook are being retired in favour of the Graph API and FQL, whichever you prefer.
The Graph API way is to parse the JSON returned by:
https://graph.facebook.com/PAGE_ID/events?access_token=TOKEN_HERE
After skim-reading the FQL docs, I can't find a way to do it using that. So, it looks like your best hope lies with the Graph API.
I would really like to know how to do this. We have a facebook page and have a livestream from this page on our website. Now we would like to have a list of events from the facebook page in the website as well. Is it posible at all?