I have an app in which I am implementing authentication using devise and omniauth. Ive got the logging in / out etc figured out, what i wanted to know was, what is the most efficient way to have a connection to the users graph api end point initialised and ready for use within my application.
eg: If on the profile page i wanted to do,
profile_image = current_user.fbgraph.get_picture("me")
How would I accomplish this with the least number of API calls (i will be using similar calls throughout the application)
@graph = Koala::Facebook::API.new(@user.fb_access_token)
(GraphAPI is now just API). – Nerynesbit