Question

Is it not possible to move between pages in the canvas on facebook?

I'm trying to create a app where i have two pages that the users can switch between. The first page works fine, but when i click a link on the first page to get to the next page it seems like the session is made invalid. I get:

"FacebookRestClientException' with message 'Session key invalid or no longer valid'"

Why is this? What am i doing wrong?

What i'm trying to do when i get the exception is this:

$user_details = $fb->api_client->users_getInfo($fb_user, 'last_name, first_name','hometown_location','current_location');
Was it helpful?

Solution

It works fine (I do it all the time, albeit in Java).

Perhaps the second page forgets to setup the fb client correctly in the second page.

You can always look for fb_sig_session_key parameter to ensure it is being sent correctly. This is passed via POST to FBML pages and via GET to iframe canvas pages. Also, you must always refer links to http://app.facebook.com/yourcanvas/relurl for the session key to be passed.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top