I'm trying to generate access token for specific user on facebook for restfb so i could share photos with my java app. I succeded to generate the token by entring facebook and copying it into my code. My question is is there any way to generate to token from the code itself? And if so how can i support the upload even when the user is not connected to facebook? Because i'm getting the error:
Exception in thread "main" com.restfb.exception.FacebookOAuthException:
Received Facebook error response of type OAuthException:
Error validating access token: The session is invalid because the user logged out.
(code 190, subcode 467)
Thanks a lot.