One of our apps uses FQL (more specifically the table url_like) as part of the core functionality.
With the upcoming deprecation of FQL we were wondering what is the Graph API endpoint (or set of endpoints) that could provide the same functionality (see likes on friend's links).
So far we haven't been able to. Any clue?
Much much appreciated.
Well, as far as I know there's no way yet to do this in a pure Graph API request. To get the total_shares, you could use something like
http://graph.facebook.com/?id=http://www.google.com
but this sums up all likes, shares, comments etc. so it's probably not what you're looking for.
You could use
https://api.facebook.com/method/links.getStats?urls=http://www.google.com&format=json
but this is also deprecated, and it's unclear how long this will work.
FQL by the way will be around for another 2 years after the next version of the Graph API will be released, see https://developers.facebook.com/docs/apps/versions#versioning So, for now I'd recommend to stick with the FQL solution.
Hava a look at How to get share counts using graph API to get some more info.
Related
I wanted to know the count of the no. of people that have shared/posted a link of my website on Facebook. I came across link_stat that I think will do what I need. The only problem is that FQL is slowly being discouraged and I fear that the code I write today may get deprecated someday.
Is there anyway to accomplish what I'm trying to do purely using the Graph API? Or maybe Facebook Insights?
I have an app that I have associated to my website and have put it's APP_ID on every page of the website.
If there is such a way, perhaps someone could post a sample link using the Graph Explorer.
I want to embed a stream of facebook posts onto a web page that is comprised of posts all around facebook containing a specific hash tag, but I'm not quite sure how to go about it. I had to do the same with twitter and instagram, but those were all fairly easy to accomplish. I'm just kind of looking for the best option right now, not so much on specifics. I've seen a couple of times the graph api for facebook as an option, but every time I see those they seem to be from a year ago, so not sure if it's out of date or if there is a better option out by now. Any recommendations on ways to go about it would be greatly appreciated.
See my answer here on how you can use the Search API for hashtags:
Need help on employing Graph Search parameters for hashtag query on facebook
Basically, you can call
https://graph.facebook.com/search?q=%23selfie&type=post&access_token={user_access_token}
Be aware that you have to use v1.0 of the Graph API, because in v2.0 searching for public posts will no longer be possible (https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_graph_api):
Public post search is no longer available.
(/search?type=post&q=foobar)
Graph API v1.0 will only be available until 30th of April, 2015.
Given an Open Graph story ID, is it possible to read insights Impression and Referral data on the story via any of the Facebook APIs?
A thorough review of the API documentation suggests it's not (but FB's API docs can get out of date) and previous SO questions have not been promising (but none of the answers seem definitive and anyway times change). Something like the following seems like a reasonable guess for where they might be available:
https://graph.facebook.com/[og_story_id]/insights
Testing queries along those lines does not error, but also hasn't turned up any real data.
As a addendum and potential hack, is it possible to access the comment or like count for an Open Graph story?
It is not possible to update the existing isight using the endpoint the only it allow only the get request post and put is not allowed for this end point
I am developing an application which would allow a user to better manage their events. However, after reading Facebook's Graph API, FQL and Legacy REST API documentations I did not find a way to obtain the events to which a user has been invited but not yet responded.
Is there any possible way to achieve that?
For some reason this is not covered in the Facebook API docs, but doing a query on the /me/events/not_replied graph path does the trick.
/me/events/{declined|maybe|attending} also work as filters on the /me/events path and pretty much explain themselves. Interestingly enough those three are included in the default /me/events but the events from /me/events/not_replied are not.
Is there a way to list all friendship requests using the facebook graph API? I didn't find anything in the docs, but with the experience I've undergone concerning the quality of this doc so far, I wouldn't be surprised if there was a way to it.
I think it's not possible using only Graph API. You will need to use any SDK and then make a FQL query.
Here you go:
http://developers.facebook.com/docs/reference/fql/friend_request/