This project is read-only.

How to get users to pass through to another page..

Dec 5, 2007 at 11:24 AM
I add links in a profile or in an invitation to say , the user clicks on it and first goes to Login to app, then to add app, then to default canvas page...

this strikes me as a bit strange,

1. why the login page?
2. The desired url does not seem to be passed on so the users never gets to

How can i get round this?

Dec 5, 2007 at 3:49 PM
I think I'm having the same or similar problem. My app is redirecting users to the "add application" page instead of login or "grant access" page. I don't want to force people to add the application just to view their friend's content.

I gather from this thread: that it's our code and/or facebookNET that is telling facebook to add the app. And indeed my page is being accessed, but is redirecting before it gets to the OnLoad. I guess it's time to download the source code and step through some stuff...
Dec 5, 2007 at 4:24 PM
Similar but not the same, i want the user to add the application then go to the desired page.

Ive been looking in reflector and it seems the code for this is in FaceBookFbmlSession.Initialize

Howver it seems the EnableExternalBrowsing property is checked before redirecting to this url (see FaceBookApplication.OnPageInitComplete), so you should be able to use that, i must admit i never got it to work when i tried it but it was a while back.....

however for my solution i need it to store the requested url before sending off to the login/app add screen and be able to recall it later (after my post add), a quick win would be a session storing the Request.RawURL then pulling it off later,although ive seen some params you can pass through to the login.php and add.php, such as canvas and next but these seems very buggy and dont seem to work with any kind of quesrystring (yes i did try encoding it).

I have posted on the dev forum to try to get an answer how to do this, ive seen lots of people doing it before so it must be a fairly simple trick we are missing....
Dec 18, 2007 at 11:32 PM
Hi guys, any progress on this one?

I'm just trying to do something very simple - get rid of the "Login to this application" screen, and have it go straight to the "Add this application" screen, so the user only has to jump through one hoop, rather than two.

Other applications seem to be able to do this . . . have had a good look and can't see anything in the code where I can change this.

Has anyone got an answer / or a patch that they can share?