, , , . facebook, . , , - , , facebook. , .
, , , , URL- . ( URL-, "return_session = 1".) , .
, , , . , http://forum.developers.facebook.com/viewtopic.php?id=56789, 7 2010 ( ).
, , , , , "" , , . , URL canvas , .
, ; , :
landing page:
if the facebook api token is not loaded,
redirect to the authorization url
try to load the user id // to validate that the session
if the user id is not loaded,
redirect to the loginurl from the facebook api
// if it reaches here, then we have both an api token and a session
authorization page:
get authorization token // see the post for how to do that
redirect back to the page configured as the canvas url
Maybe a better way, and I'm sure someone more familiar with this than me could get a better solution or post a generic code.