i have facebook app , can both user token , app token url: https://developers.facebook.com/tools/access_token/ in ruby on rails application getting event information using following code:
graph = koala::facebook::api.new(<my user token aforementioned url>) fb_event = graph.get_object(facebook_event_id)
the issue here app user token expires. know reason why should not put directly in code, testing purposes far it's been sufficient. however, not long term strategy.
how can dynamically obtain user token? similar getting user token actual user opposed app?
you can request long-lived token , use testing purpose. https://developers.facebook.com/docs/facebook-login/access-tokens/expiration-and-extension
Comments
Post a Comment