Facebook redirect url contents

Okay, the new phase of my project is rewriting ours FB App

for a new one v4 PHP SDK

. What should it look like redirectUrl

? Currently what happens during login:

1) I am creating FacebookRedirectLoginHelper

(derived class) using it to create loginUrl

with url

in my application (example.com/myApp) as redirectUrl.

2) Put this in a nice button for the user to click

3) When user clicks appears FB Oauth dialog

, user clicks ok

4) My next page (which will connect facebook UID

to an account on our system) will appear - but not in the context of Facebook - it basically exits iFrame

.

I installed redirectUrl

as url

my application:

https://example.com/myapplication/index

      

Looking through the various comments, it seems like it should be the Canvas page URL from my application settings:

https://apps.facebook.com/<my app id>

      

But if I do that, it goes into an infinite loop, just pushing my cute button (from # 2) back and ...

What should be the value for redirectUrl

?

+3


source to share


1 answer


Assuming you're building a canvas app, users won't see your return URL. But you have to put a url on your site that fits into the facebook canvas.

eg.



http://www.example.com/facebook/yourappname/

      

Link http://www.boutell.com/fbhowto/chapter1.html

+2


source







All Articles