Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 使用考拉宝石获取数据参数_Ruby On Rails_Facebook_Facebook Graph Api_Rubygems_Koala - Fatal编程技术网

Ruby on rails 使用考拉宝石获取数据参数

Ruby on rails 使用考拉宝石获取数据参数,ruby-on-rails,facebook,facebook-graph-api,rubygems,koala,Ruby On Rails,Facebook,Facebook Graph Api,Rubygems,Koala,我在我的应用程序请求js中发送以下参数: = link_to_function _("Invite Friends to Blabloo"), "FB.init({appId: '#{Facebook::APP_ID}', xfbml: true, cookie: true});FB.ui({ method: 'apprequests', message: 'Invite Friends to Blabloo...',

我在我的应用程序请求js中发送以下参数:

= link_to_function _("Invite Friends to Blabloo"), 
              "FB.init({appId: '#{Facebook::APP_ID}', xfbml: true, cookie: true});FB.ui({  method: 'apprequests', 
                message: 'Invite Friends to Blabloo...',
                data: '{\"draw_token\":\"#{@draw.token}\",\"invitation_token\":\"#{current_kid.invitation_token}\"}',
                exclude_ids: #{@draw.get_invited_ids_for current_kid}},
                handle_fb_callback);", class: 'btn button btn-primary pull-right'
如您所见,我将向其发送两个参数:

提取\u令牌和邀请\u令牌

现在,我如何在使用考拉的家庭控制器的索引操作中获得这些参数的值

我得到的URL如下所示:

我知道我必须使用params[:request_id]获取请求id,但是我不知道如何处理考拉和这个值


提前感谢您的帮助。

您知道如何使用考拉调用一个简单的facebook图形api,比如说
/me
?不,我是这个项目的新手。您没有在任何地方使用过
@oauth=koala::facebook::oauth.new(APP\u ID,APP\u SECRET,REDIRECT\u URI)
?是否在任何地方使用了访问令牌?