Facebook, FB.ui() - An error occurred. Please try again later.

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

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值