Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

How to login with Facebook (using restfb API)?

protected String accessToken2 = "E****";
FacebookClient fbClient = new DefaultFacebookClient(accessToken2);
Group group = fbClient.fetchObject("494271834397031", Group.class);
Connection<Post> postFeed = fbClient.fetchConnection(group.getId() + "/feed", Post.class);

At this point, in my application I don't have a facebook login() method, so I'm using my own access token (and entering it manually). I would like to implement facebook login to get user's token. Is there any way to implement it (or it will be needed further facebook permissions for my app)?

Comments