Thursday, June 23, 2011

Re: Facebook apps with Cake

Thanks Sadikul, I appreciate the response.

The app I'm developing works in conjunction with an existing site. I
already switched the site over to Facebooks PHP SDK 3.0. I use the SDK
to handle user Authorization, Authentication, registration, harvesting
user info, publishing streams, and a boatload of other things specific
to the site. The information at http://developers.facebook.com/docs/guides/canvas/
has been repeatedly helpful all 101+ times I've referred to it :) and
there is a bit or two that I use outside of the SDK when interacting
with the Graph API. More notably is the information at
http://developers.facebook.com/docs/guides/canvas/ does not even hint
at how to successfully pull off a redirect to another action in my
Cake controller without the response getting bounced out of the
iframe. Bastards! Thanks anyhow :)

Oddly enough, as a barebones app I'm able to access every one of my
Cake MVC through FB iframe UNTIL the app engages in OAuth dialogue,
then it boots me. Still can't figure that one out.

Anyhow, thanks for the response. I'll take the question "off-list"
since I really don't think it's Cake related. Damn you Facebook!

- ED

On Jun 23, 8:50 pm, Sadikul Ameen Mohamed <sadi...@greatinnovus.com>
wrote:
> Facebook updated the canvas Apps no need the PHP SDK 3.0 files if you
> want to learn more find the linkhttp://developers.facebook.com/docs/guides/canvas/
> which is help full for your development
>
> On Jun 23, 10:47 pm, Ed Propsner <crotchf...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Just wondering if anyone has experience with facebook iframe canvas apps
> > using Cake? I've been using <fbml> for older apps with no issues but for my
> > newest app moved to PHP SDK 3.0 and iframes. Everything seems to work fine
> > except for redirecting users to other pages within the iframe. I've tried
> > every form of redirect I can think  of but the end result is that I end up
> > leaving the iframe and back on my site ...http://some_site/facebook/redirect_action/insteadofhttp://apps.facebook.com/some_app/redirect/.  I'm currently using echo
> > "<script type='text/javascript'>top.location.href = '$redirect'';</script>";
> > for the redirect. Kind of a dumb question I know, but should I be doing
> > something different since I'm using Cake and iframes? I wouldn't think so.
> > (I used Cake and <fbml> with no issues).
>
> > Thanks in advance,
> > - Ed

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: