babyewok Posted December 14, 2011 Share Posted December 14, 2011 I recenltly bought Presta Facebook Connect and had finally got it working perfectly yesterday only to find that within an hour of going live, it no longer works. This is due to Facebook implementing the new Oauth 2.0 which was apparently announced in July, giving developees a deadline of October 1st to change their coding and then finally making the switch yesterday. Unfortunately the developer of this module failed to do this and so many people who have this module will be finding that it does not work today! (http://developers.fa.../blog/post/614/). From reading the blog post it seems that simply adding oauth: false to FB.init should be enough (and changing perms to scope on FB:login-button as perms is no longer used). However, with this I get an error: uncaught exception: Error: Permission denied for <https://www.facebook.com> to get property Proxy.InstallTrigger and the user is logged in and then striaght back out (by the way before all this happened I also found that the onclick event on fb:login-button no longer works so you should change it to onlogin) If I set oauth to true and try to implement the changes outlined in the blog, the smae happens - logged in and then logged out again straight awasy with an error saying: FB.logout without access token. I am not looking to merely bi*ch about the developer but to find if others can help with this predicament as the developer has unfortunately not been very forthcoming! So far, I have made the following changes: Set oauth : true in FB.init Changed all referrences to response.session to response.authResponse Changed perms to scope on FB:login-button Changed var userID = response.session.uid; to var userID = response.authResponse.userID; since uid is now userID - is there anywhere else I should change this? Although I no longer get the user expected error I think that's it, but I keep getting logged out as soon as I am logged in - it must be either because I need the accessToken, the logged in/ logged out sessions are dealt with differently....something along thos elines as it seems to very nearly work! Also I have single login enabled, so if I log into Facebook first and then visit the site I am logged in just fine to the site - the ossue only seems to be when I try to log in via the site itself. I should point out that this is currently set up on my test server on my local computer as I have obviously uninstalled the module on the live site. Please help!!! Link to comment Share on other sites More sharing options...
babyewok Posted December 14, 2011 Author Share Posted December 14, 2011 Take that back - there is still some weirdness involved when I log into Facebook first...so all rounf it ain't workin'! Link to comment Share on other sites More sharing options...
babyewok Posted December 14, 2011 Author Share Posted December 14, 2011 Whop whoop, the developer issued an update and now it works again! Make sure you ask for version 5.2 if you are experiencing problems. Link to comment Share on other sites More sharing options...
Recommended Posts