Q: Help, my code to post to Facebook wall via FB.ui() has suddenly stopped working, it now just displays this error - 'An error occurred. Please try again later.', what's happened?, it used to work just fine!

A: In the last few days Facebook have changed their rules and you now can't call FB.ui() without first passing a valid appID to FB.init() when you call it.. So if you used to call FB.ui() without first registering an app then this may well be what's causing you the problem.

To get around the problem, just register an app up on facebook and then make sure to pass your appID when you call FB.init(). All you have to do on Face book is register the app and take a copy of the AppId, you don't need to do any other setup and configuration on the application.

Hope this helps, we spent a good bit of time this morning trying to figure out what was broken!

 

 

++++++++++++++++++++++++++++++++++++++++++

Description

I am getting "An error ocurred. Please try again later" from facebook.
The step to reproduce this error follows: (need 2 tab showing fb & app)
1. Login to fb
2. Login to app by using fbconnect
3. Logout from app
4. Logout from fb
5. Try to login to app
6. Error

 

++++++++++++++++++++++++++++++++++++++++++

 

me too i have the same problem! what is the possible reason?

 

++++++++++++++++++++++++++++++++++++++++++

 

You have to pass valid application id when you init FB JS api, like here:

 

FB.init({
appId : 
'your_application_id',
sssion : { your_session_json_formated }
cookie : 
true,
});

Session you can take from php, using json_encode on $facebook
->getSession(). 

 

 

 

摘自:http://www.pridedesign.ie/content/facebook-fbui-error-occurred-please-try-again-later

 

 

 

 

 

posted on 2011-09-19 16:18  小炒花生米  阅读(2646)  评论(0编辑  收藏  举报