I am new to restfb, I have created an app in FB developers.
I need to post threads asynchronously to My own FB page.
I have used:
FacebookClient facebookClient = new DefaultFacebookClient("QQZAdauSYGcs8JRe3ZCUDWDrRYRKbKxuD9trn6E3C0RLVB5L38164LUGSSMLPojrOWtZCsWgW7zOSC1...");
By the way, this access token is getting expired frequently. How can I do this asynchronously without manually getting the Access Token on to FB dev site.
Kindly feel free to ask additional details
RestFB provides a method for this, but you should read the facebook docs anyway.
http://restfb.com/#access-token-extend
AccessToken accessToken =
new DefaultFacebookClient().obtainExtendedAccessToken(MY_APP_ID,
MY_APP_SECRET, MY_ACCESS_TOKEN);
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.