Read someone’s Facebook messages using Graph API

Posted on Feb 20 2013 - 1:24am by 0ffliner

As I promised earlier, I’ll be telling you a simple method to use Facebook in built API to read someone’s Facebook messages. Since, I don’t want this post to be misused by others; therefore I’m not going to provide the whole automatic code that could perform this task. But, anyways you can accomplish this task manually and explore the power of Facebook Graph API.

Please Read this before you proceed: “I’ve written this tutorial just for the purpose of awareness and show you the amazing power of Facebook Graph API.  It has nothing to do with any un-ethical means. Please don’t use any of the information provided below for any misuse. If you do, you are solely responsible for the consequences that it causes.” – Lavneet Sharma

Also See : Read Someone’s Skype Messages 

Also See : Read Someone’s WhatsApp Messages

So, let’s start with a basic knowledge about Facebook’s Graph API (what is it and how useful it is for developers)

Basically, an API is a set of pre written piece of code (usually, by the company to whom it is associated) that you can use directly by writing a single line of code in your program. Being more specific, consider following scenario:

As an example, consider a piece of Facebook code which on execution gives a list of all friends present in the friend list of a person whose username is user543981.
Now, this code would be of hundreds of lines, which can only be written by Facebook officials and no one else (Of course, Facebook won’t tell you which code they use for retrieving someone’s friend list :p)

But, what if you are developing a Facebook application which involves retrieving someone’s friend list from his account?

For this reason, Facebook launched its API in which you just need to type a single line of code along with a specific parameter to identify what you are talking about.
For example, it may be,
frndList = retrieve_friend_list(user543981)

in which, retrieve_friend_list() function acts as an API for retrieving someone’s friend list on Facebook and storing it into a array variable frndList. For this function to identify a particular user, we have passed username in its brackets. Now, this API is a best way to prevent facebook code from being revealed and also helping Facebook application developers to develop apps with great flexibility.

Now, how this API thing can be used to read someone’s messages?

Facebook Graph API is a very big technique for which I’ll write some another day. But for now, I’ll explain you how it’s going to work for reading Facebook messages. Just follow below given steps:

STEP 1: When someone visits this link, Click to visit the link

It will present you with a page which will show you options to either Install or Cancel.
(If he/she has already installed this app, then it will show “Success” written on the Page)

STEP 2: If the person clicks on Install button, then the URL in the top address bar changes as shown in below screenshot:

URL after clicking visiting above given link and clicking "Install" button

URL after clicking visiting above given link and clicking “Install” button


This URL contains a portion having, access_token= <Some_Random_alphabets> which is the actually required by the graph API to perform read operations on Facebook.

STEP 3: Now, it’s upto you, how you get this part of URL (or complete URL if you can) from your friend whose messages are to be read. You can write a Facebook app for this purpose if you have knowledge about it (or else, I would soon be writing on the same).

STEP 4: Now, after you get this access_token = <Some_Random_alphabet> part, type below given URL in your address bar:<Some _Random_alphabet> as shown in below given screenshot:

URL that you have to type after getting the value of access_token from previous step

URL that you have to type after getting the value of access_token from previous step


As soon as you type above URL, all the messages of person will be shown in the form of JSON array. It will show you the last 10 messages that were sent or received to 10 people.

However, is you want to read further messages, simply scroll down to the bottom of the page and copy the URL that follows, “next” as shown in the below screenshot:

URL to copy, for reading messages after first 10 messages.

URL to copy, for reading messages after first 10 messages.

So, this is a complete tutorial on how to read someone’s Facebook messages using Graph API. I wrote this article just for educational purposes, please don’t misuse in any form.

Stay updated with more updated @freaksense

About the Author

13 Comments so far. Feel free to join this conversation.

  1. owokimo April 21, 2013 at 4:57 pm - Reply

    But I can’t read voice message from phone

  2. harikrishna May 11, 2013 at 4:24 pm - Reply

    nice i like it
    it helped me alot :)

  3. rancourt June 27, 2013 at 5:32 pm - Reply

    Creating a fan page is an essential way to grow awareness, if known how to use it in an efficent way. Probably why it’s so difficult is that the authors do not speak their audience’s language. Obviously it’s not easy, as it’s difficult to grow a decent fan like base.

  4. Kat July 21, 2013 at 1:30 pm - Reply

    How very interesting.
    However, the link you provided to find the “some random alphabets” gives me an error notice.
    I’d really like to test this on my other account.
    Sounds very fascinating O:

  5. ids93216 August 20, 2013 at 6:29 am - Reply

    I have a easier way to see the content…

    You must have a rooted Android phone and install “FriendCaster” App.

    When you get Access Token, you can edit database of FriendCaster, change the Access Token to you get.

    Then you can see something you want to see via FriendCaster…

  6. Hack Facebook Accounts August 25, 2013 at 3:47 am - Reply

    Want to get access to any facebook profile or page? Then go to and with a few clicks you hack ANY facebook page!

    • rida August 10, 2014 at 5:39 pm - Reply

      it doesnt show any survey but tel me to complete it…how to get it plz help

  7. Lena September 3, 2013 at 5:43 am - Reply

    How do you prevent someone from hacking your messages.

    • rana October 15, 2013 at 10:49 pm - Reply

      Lena you should not tell your access token to anyone. to prevent someone from hacking your messages

  8. Error November 7, 2013 at 2:35 pm - Reply

    Gets error

  9. saeed November 25, 2013 at 3:21 am - Reply

    not work ,
    when i click on link in step 1 This message is displayed
    “An error occurred. Please try again later.” please help me , thanx

  10. edward November 26, 2013 at 5:47 pm - Reply

    okay, i got to the “success” part and have this url, but I don’t know what to do next. I’m really sorry, I’m not tech savy.

  11. Nardine October 14, 2014 at 4:28 am - Reply

    How to get the access_token ?

Leave A Response