Method: Facy::GetToken#grant_access
- Defined in:
- lib/facy/get_token.rb
#grant_access ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/facy/get_token.rb', line 63 def grant_access app_id = config[:app_id] redirect_uri = config[:redirect_uri] = config[:permission] get_access_url = "https://www.facebook.com/dialog/oauth?client_id=#{app_id}&scope=#{}&redirect_uri=#{redirect_uri}" puts "★ goto #{get_access_url} to grant access to our app" browse(get_access_url) puts "→ after access granted press enter" STDIN.gets end |