Support Center

How to fix Facebook integration in SocialEngine PHP 4.8.8 and lower

Facebook recently updated their integration API, so if you have Facebook integration enabled on your website, you’ll need to make a minor change to keep up.

Note: This fix has already been included in version 4.8.9 of SocialEngine PHP.

Specifically, Facebook has removed the "offline_access" permission from their permissions stack. You can read about it here: https://developers.facebook.com/docs/roadmap/completed-changes/offline-access-removal

Because of this change, App owners will see an error message when trying to log in to their website using the Fconnect (or Facebook Connect) button. Here’s what the error message looks like:

Please note that users of the app will not see any problems while using the Fconnect button. But if you get this error message when creating your app, you need to apply a small fix on your website. The compatibility fix will take place in your SocialEngine PHP installation’s core.

First, download the patch attached to this article and extract the downloaded file to get a folder named application.

Replace the existing file: /application/modules/User/controllers/AuthController.php on your server with the corresponding file at the same path in the downloaded application folder.

If you would prefer to apply the fix directly to your website, then simply open the file: /application/modules/User/controllers/AuthController.php at around line 753.

You should see the following:
 

'offline_access',

 

Simply comment out that line:

// 'offline_access',

 

​That should do the trick! If you have any questions, please don’t hesitate to contact us or post a comment here.

Attachments
support@socialengine.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete?b_id=14386