How to handle Facebook signed_request?

28 views
Skip to first unread message

Javier_CH

unread,
Apr 29, 2011, 6:56:45 AM4/29/11
to rest-graph
I've built a Facebook app using Sinatra and the Rest-Graph gem. Now I
would like to embed the app as an iFrame in a Facebook Page.

To do that, I need to fetch the data from the 'signed_request' sent to
my app by Facebook.

I did find the method to do that in the source, but can't figure out
how to exactly us it:
https://github.com/godfat/rest-graph/blob/master/lib/rest-graph/core.rb#L364

Does anyone know where this is documented or point me to an example?

Thank your very much!

Regards
Javier

Lin Jen-Shin (godfat)

unread,
May 2, 2011, 5:58:11 AM5/2/11
to rest-...@googlegroups.com
I'm very sorry for the late response, really quite busy for these days.

I just pushed a very simple example for Sinatra to parse signed_request,
hope this would help you:

https://github.com/cardinalblue/rest-graph/blob/d392fbaf2d63a858a55fe656d6a993c7e289187c/example/sinatra/config.ru

Cheers,

Javier_CH

unread,
May 2, 2011, 4:07:39 PM5/2/11
to rest-graph
No worries about the late response. Thank you very much, that was
exactly what I was looking for!

Regards,
Javier

On May 2, 11:58 am, "Lin Jen-Shin (godfat)" <god...@gmail.com> wrote:
> I'm very sorry for the late response, really quite busy for these days.
>
> I just pushed a very simple example for Sinatra to parse signed_request,
> hope this would help you:
>
> https://github.com/cardinalblue/rest-graph/blob/d392fbaf2d63a858a55fe...
>
> Cheers,
Reply all
Reply to author
Forward
0 new messages