list all facebook friend requests - facebook

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/

Related

Searching through facebook posts based on keywords Facebook API

Can I go find a user's posts and comments based on a certain keyword?
No, there is no API for that.
What you can still search for via API, is pretty limited these days. https://developers.facebook.com/docs/graph-api/advanced/#searchtypes

What's the equivalent of url_like on the Graph Api?

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.

Facebook Graph API 2.0 alternative to link_stat

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.

Facebook API to get 'landmark' posts

How would I GET landmarks, like new job/ married/ moved, etc. from the facebook (or any other 3rd party) API??
I'm trying to make a timeline of 'big' moments using facebook, specifically on iOS
I found an answer here stackoverflow.com/questions/12400522/… that lets you use FQL instead of the graph API to send requests and then returns more exact information.
Facebook's FQL reference is here: https://developers.facebook.com/docs/technical-guides/fql/

Access user's event invitations

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.