简体   繁体   中英

how to get user Access token in facebook using java

How to get user AccessToken of fb using REST API programatically in java using emailid and password for multiple user.I am making javaFX Desktop application to post a message in all the user wall. here any other api is available to get Access token at run time. I have also use Facebook4j api but not get any solution to getting User access Token not App Access Taken.

Here I see the code that is using access Token

FacebookClient facebookClient = new DefaultFacebookClient(MY_ACCESS_TOKEN);

But it's not showing how to get User Access Token using desktop Application. It is possible or not?

You have to implement the OAuth login flow to get an User Access Token. You can find an example app here: https://github.com/roundrop/facebook4j-oauth-example

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM