How to get the details of the user using restfb.?
-
I am trying to get the lastname of my profile using restfb.But but each time the username is returned as null.I already have the acess token and permissions.I guess t some problem with the JSon object passing.how can i pass the json objects to a javabean and later retrieve it?
-
Answer:
This works for me: FacebookClient facebookClient = new DefaultFacebookClient(MY_ACCESS_TOKEN); User user = facebookClient.fetchObject("me", User.class); out.println("Last name: " + user.getLastName());
sandeepsharat at Stack Overflow Visit the source
Related Q & A:
- How to follow a user using tweetsharp?Best solution by Stack Overflow
- Python: How do you get an input from the user into a list?Best solution by stackoverflow.com
- How to get user's current location?Best solution by Stack Overflow
- How to get initial reputation on Stack Overflow with the new-user restrictions in place?Best solution by Meta Stack Overflow
- how to register a user using afnetworking?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.