I am getting the information of the following URL and it needs to be parsed in the rail. I request beforehand and checked the final but it is not there
"#" character F * CK
The URL appears to be:.
Actiteepi://fukbarkmen/whu#akses_tokn=l3l268096888809%7C2k5BRBl_kt4xJ08n88ycbpZg__k3600kl276880400-l0000ll5l606930%7C0kJlK-kobbdoblks6s4z5UEaxM.
Thanks for any indication given.
is able to access the part after you have not "#" character because browser to server You can use it on the client side with javascript though not send. It seems that you do not want to use what you really want. I have not had any problems trying to use this library Update: There is a need to check only the You really do not need to do anything else to work for it. parameters [: code]
within the callback action. Code I simplified version used in their experiments with the new Facebook Graph API:
# as accessible facebook_url: # routes.rb: map.facebook '/ Facebook ,: controller = Gt; 'Facebook',: Action => 'Index' def index OAuth2 = OAuth2 :: Client.new (FB_API_KEY, FB_API_SECRET ,: site = & gt; 'https://graph.facebook.com') the user is already established that current_user.facebook_token # FB = OAuth2 :: AccessToken.new (OAuth2, current_user.facebook_sid) result = JSON.parse (fb.get ( 'me /')) elsif parameter [code] # here we get access token Facebook FB = oauth2.web_server.get_access_token ( parameter [code] ,: redirect_uri = & gt; facebook_url) result = JSON.parse (fb.get ( 'me /')) current_user.facebook_id = results [ "id"] current_user.facebook_token = fb.token.to_s current_user .save Else # user is watching this page for the first time. We redirect him to Facebook redirect_to oauth2.web_server.authorize_url (: redirect_uri = & gt; facebook_url ,: scope = & gt; 'read_stream, publish_stream, offline_access') ending
Comments
Post a Comment