English 中文(简体)
Facebook Canvas multiple pages?
原标题:

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.

问题回答

暂无回答




相关问题
Facebook Connect login dialog not working

I am using Facebook Connect for iPhone and following the official instructions. I use the following code to display the login dialog: FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:...

Facebook App Profile Tab is Empty ... No Content Displayed?

I can view my application via the http://apps.facebook.com/myapplication/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the ...

Facebook Platform error: "Object cannot be liked"

I m working on a Facebook Application that generates wall posts. In testing these posts, I ve discovered that the Facebook Platform action of "liking" a post is failing. The specific error message ...

how to call showPermissionsDialog() in php (facebook api)?

I was reading over the documentation yet I could not figure out how to call Facebook.showPermissionsDialog() in php include_once ./facebook-platform/php/facebook.php ; $facebook = new Facebook(my ...

Facebook connect

If I plug in the facebook connect into my website, How can I prevent double signups? Lets say I have a user that s already signed up to my site but he clicked the connect with facebook, is there a ...

热门标签