Im new with all this about Koala and Facebook, Im having a problem with facebook access token.
I have to generate a new access token for my app avery 60 minutes, because after that time I get the error that my access token has expired.
I user Devise + Omniauth-facebook + Koala for make my integrations.
I have a facebook.yml file where I have the app_id, secret and my access_token.
for generate the access token I folow the "Koala's read me" that says that I have to go to the Graph API Explorer and generate the access_token for my app, well I click on "Get access token" button then select the permissions I want and then click generate. then I copy and paste the access token to my facebook.yml file so I can make requests like
@graph = Koala::Facebook::API.new(FACEBOOK_CONFIG['access_token'])
@profile = @graph.get_object("me")
@friends = @graph.get_connections("me", "friends?fields=id,name,picture.type(normal)")
The problem that Im facing is that the access token I generate at Graph API Explorer always is 60 minutes available, after that time I have to do the process again and generate another a new token for make everything work again.
Can someone tell me how can I generate an access token longer? not only 60 minutes...
Thanks in advance!