Access user's event invitations - facebook

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.

Related

What choose Instagram Graph API or old API

I wonder if it is possible to use a new Instagram Graph API only for hobby purpose(small java application). The main aim is to process only user's data that is currently log in on instagram(not other's user data). Generally I'm a beginner on this field and I try to determine my chances for writing this kind of application, because I've read that sometimes it is hard to get permission to API from facebook, so maybe somebody know how it works in practice?
From what I can tell on the docs site, the Graph API is only used if you're making something for Business Accounts. The docs say that if making something for non-business users, to use the old API.
Reference here: https://developers.facebook.com/docs/instagram-api
I personaly suggest you to use new graph API, because older API support may be disabled in future and might be deprecated in future.
Moreover, Facebook does not give permission easily but you give proper & exact content if allows you and provide great support.

Reading user's posts to pages

For a given Facebook user, is there a possibility to read all posts that he's made to any pages? On FB web, these can be found in the activity log, but so far I couldn't find a method to get them via API.
Both /user/posts and /user/feeds only contain status and profile updates, not posts to pages. I know I can read /page/feed and use paging to find this user's posts for any page the user likes, but how about those he doesn't?
No, outside of FQL, there is nothing in the API that accomplishes this. I'd imagine this to be a pretty data intensive call with minimal use cases however, so I don't think this will be introduced anytime soon.

Facebook API 'Events Popular In Your Network'

I am trying to utilise the Facebook Graph API to access the section 'Events Popular In Your Network'. However, I cannot seem to find an endpoint that gives access to these. Is there a possible way to get hold of this information? The section is accessed by clicking 'Events' and scrolling down.
Unfortunately no, there is not an specific endpoint for that.
If you want, you might be able to build something similar using events (events docs). Getting friends events, checking attendees (attending endpoint) and ranking them (popular in this case means more friends attending to the event).
I hope it helps.

Is Facebook's /me/permissions an undocumented Graph API call?

After looking for ways to check if a user has a given permission, I stumbled upon some obscure reference to /me/permissions, which, lo and behold, works!
For the life of me, I can't find the documentation on the Facebook Documentation - is it deprecated, or simply undocumented?
Given how often facebook changes things, should I even be using this?
They blogged about that:
As part of our efforts to transition
functionality from legacy REST APIs to
the Graph API, we added the ability to
retrieve the list of permissions users
have granted your app by adding the
permissions connection to the User
object.
And is part of the docs on the User object, under connections.

list all facebook friend requests

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/