Hi,

Thanks a lot for the replies.

Actually we are implementing FB login for our app. For this we want to 
detect whether /user/login controller was a redirect from facebook (after 
authentication) or a a user noramlly opened /user/login in their browser.

Sometimes FB reidrects to /user/login#_=_ and sometimes to 
/user/login?code=........................

[
"Change in Session Redirect Behavior. This week, we started adding a 
fragment #_=_ to the redirect_uri when this field is left blank. Please 
ensure that your app can handle this behavior."

https://developers.facebook.com/blog/post/552/ 


]

How can I differentiate b/w the two?

Saurabh


On Sunday, March 11, 2012 1:26:19 AM UTC+5:30, pbreit wrote:
>
> As Anthony noted, what you are showing won't work. What are you trying to 
> do?
>
> You can include any code you want in the user() function.
>

Reply via email to