开发者

How to send facebook session details to a rails application using facebooker plugin

开发者 https://www.devze.com 2022-12-15 15:57 出处:网络
I am not able to integrate the iPhone application with my rails application both using fbconnect as the session details that i send along with the request from iPhone are not recognized by the faceboo

I am not able to integrate the iPhone application with my rails application both using fbconnect as the session details that i send along with the request from iPhone are not recognized by the facebooker plugin. The request from iPhone is as follows:

[request setURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://localhost:3000/i_phone/get-user-info?fb_sig_session_key=%@",session.sessionKey]]];

and in rails application i use

set_facebook_session

method from facebooker plugin.

Can someo开发者_StackOverflowne tell me whay am i doing wrong here and what is the right way to do it.


I am requesting localhost as my web application is also hosted on the same machine locally.


You should check out the ConnectiProxy demo put together by ckhsponge on github. He's posted sample rails and iphone apps that work together to handle secure facebook connect authentication between iphone and rails.

Rails app http://github.com/ckhsponge/connectiproxy

iPhone app http://github.com/ckhsponge/facebook-iphone-sdk

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号