문제

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');
도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top