1

I have the Facebook SDK for Android used in my app. I can't seem to find any examples or documentation on how to use the SDK code to get Friend Requests. I have the permission "read_requests" set. Does anyone know the graphPath parameter that should be used for Friend Request?

example: "me/????????"

Charles
  • 50,943
  • 13
  • 104
  • 142
Camille Sévigny
  • 5,104
  • 4
  • 38
  • 61

1 Answers1

3

me/friendrequests

https://developers.facebook.com/docs/reference/api/user/#friendrequests

abraham
  • 46,583
  • 10
  • 100
  • 152
  • Awesome! What is the graphPath for Messages? I see Pokes and outbox, but i am looking for the path for new messages a user receives. – Camille Sévigny Dec 04 '11 at 03:02
  • You probably want the `notifications` method listed on the same page. – abraham Dec 05 '11 at 05:04
  • I know that the faceook api is not the best or the best documented, but are you sure? I assume that since there are 3 "types" of notification icons on the facebook html page, that there should be 3 ways to query them....Friend Requests, Messages & Notifications – Camille Sévigny Dec 05 '11 at 18:15
  • There is a whole bunch of different endpoints listed on the page. If you look through them you should find what you want. I just glanced at it and `updates` is another potential one. – abraham Dec 05 '11 at 19:31
  • Thanks for all your help Abraham. I'll send myself some test messages and see where they end up on the API. – Camille Sévigny Dec 05 '11 at 20:51
  • FYI: The path for Facebook messages (your Facebook inbox) is this "me/inbox". – Camille Sévigny Dec 12 '11 at 15:24