Title: Error with authorize plugin
Last modified: August 22, 2016

---

# Error with authorize plugin

 *  Resolved [Villarou](https://wordpress.org/support/users/villarou/)
 * (@villarou)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-with-authorize-plugin/)
 * Hi,
    I have problem with authorize plugin. After click on button “Authorize Now”
   I have got this error on page:
 *     ```
       Warning: Invalid argument supplied for foreach() in /home/vector/everest.deltanrg.ru/docs/wp-content/plugins/facebook-publish/lib/class/hybridauth/Hybrid/Storage.php on line 109
   
       Warning: Cannot modify header information - headers already sent by (output started at /home/vector/everest.deltanrg.ru/docs/wp-content/plugins/facebook-publish/lib/class/hybridauth/Hybrid/Storage.php:109) in /home/vector/everest.deltanrg.ru/docs/wp-content/plugins/facebook-publish/lib/class/hybridauth/Hybrid/Auth.php on line 353
       ```
   
 * After refresh page I got error
 *     ```
       Fatal error: Uncaught exception 'Exception' with message 'Authentication failed! Facebook returned an invalid user id.' in ..../wp-content/plugins/facebook-publish/lib/class/hybridauth/Hybrid/Auth.php:152 Stack trace: #0 ..../wp-content/plugins/facebook-publish/lib/class/hybridauth/Hybrid/Auth.php(39): Hybrid_Auth::initialize('root_path') #1
       ..../wp-content/plugins/facebook-publish/init.php(29): Hybrid_Auth->__construct('/home/...') #2 ..../wp-settings.php(215): include_once('/home/vector/ev...') #3
       ..../wp-config.php(83): require_once('/home/vector/ev...') #4
       ..../wp-load.php(29): require_once('/home/vector/ev...') #5
       ..../wp-blog-header.php(12): require_once('/home/vector/ev...') #6 ..../index.php(17): require('/home/vector/ev...') #7 {main} in ..../wp-content/plugins/facebook-publish/lib/class/hybridauth/Hybrid/Auth.php on line 152
       ```
   
 * P.S. Sorry for my English
 * [https://wordpress.org/plugins/facebook-publish/](https://wordpress.org/plugins/facebook-publish/)

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [Pramod Jodhani](https://wordpress.org/support/users/promz/)
 * (@promz)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-with-authorize-plugin/#post-5394607)
 * Got it. The update is coming soon maybe today or tomorrow.
 *  Thread Starter [Villarou](https://wordpress.org/support/users/villarou/)
 * (@villarou)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-with-authorize-plugin/#post-5394683)
 * Hello.
    I updated plugin from version 1.1 to version 1.2 and click “Authorize
   Now” but I have got error:
 * `Uncaught exception 'Exception' with message 'Authentication failed! Facebook
   returned an invalid user id.' in .../wp-content/plugins/facebook-publish/lib/
   class/hybridauth/Hybrid/Auth.php:152 Stack trace: #0 .../wp-content/plugins/facebook-
   publish/lib/class/hybridauth/Hybrid/Auth.php(39): Hybrid_Auth::initialize('/home/
   vector/ev...') #1 .../wp-content/plugins/facebook-publish/init.php(29): Hybrid_Auth-
   >__construct('/home/vector/ev...') #2 .../wp-settings.php(215): include_once('/
   home/vector/ev...') #3 .../docs/wp-config.php(83): require_once('/home/vector/
   ev...') #4 .../docs/wp-load.php(29): require_once('/home/vector/ev...') #5 .../
   docs/wp-blog-header.php(12): require_once('/home/vector/ev...') #6 .../docs/index.
   php(17): require('/home/vector/ev...') #7 {main} in .../docs/wp-content/plugins/
   facebook-publish/lib/class/hybridauth/Hybrid/Auth.php on line 152`
 * P.S. I reset application key also and updated his in plugin setting
 *  Plugin Author [Pramod Jodhani](https://wordpress.org/support/users/promz/)
 * (@promz)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-with-authorize-plugin/#post-5394684)
 * did you reset the settings from Facebook Publish General screen?
 *  Thread Starter [Villarou](https://wordpress.org/support/users/villarou/)
 * (@villarou)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-with-authorize-plugin/#post-5394689)
 * Yes, I am reset the settings from Facebook Publish General screen
 *  [nestro](https://wordpress.org/support/users/nestro/)
 * (@nestro)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-with-authorize-plugin/#post-5394722)
 * I have a same problem .. i cannot activate it gives me error:
 *  plugin could not be activated
 * Fatal error: Declaration of Hybrid_Storage::restoreSessionData() must be compatible
   with that of Hybrid_Storage_Interface::restoreSessionData() in /home/nestro/public_html/
   wp-content/plugins/facebook-publish/lib/class/hybridauth/Hybrid/Storage.php on
   line 13
 *  [nestro](https://wordpress.org/support/users/nestro/)
 * (@nestro)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-with-authorize-plugin/#post-5394723)
 * problem solved … [https://wordpress.org/support/topic/getting-fatal-error-when-activating-plugin-after-update?replies=5](https://wordpress.org/support/topic/getting-fatal-error-when-activating-plugin-after-update?replies=5)
 *  Plugin Author [Pramod Jodhani](https://wordpress.org/support/users/promz/)
 * (@promz)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-with-authorize-plugin/#post-5394724)
 * Hello,
 * The error is because of using the older version of PHP. Can you please make sure
   that you are using PHP 5.4+
 * FYI, you can update the php version from the cpanel.
 *  [ezaz](https://wordpress.org/support/users/ezaz/)
 * (@ezaz)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-with-authorize-plugin/#post-5394806)
 * Hello
 * The problem is that the exception is thrown:
 * `Fatal error: Uncaught exception ‘Exception’ with message ‘Authentication failed!
   Facebook returned an invalid user id.’ in /home/u703621028/public_html/wp-content/
   plugins/facebook-publish/lib/class/hybridauth/Hybrid/Auth.php:152 Stack trace:#
   0 /home/u703621028/public_html/wp-content/plugins/facebook-publish/lib/class/
   hybridauth/Hybrid/Auth.php(39): Hybrid_Auth::initialize(‘/home/u70362102…’)
 * #1 /home/u703621028/public_html/wp-content/plugins/facebook-publish/init.php(
   29): Hybrid_Auth->__construct(‘/home/u70362102…’)
    #2 /home/u703621028/public_html/
   wp-settings.php(215): include_once(‘/home/u70362102…’) #3 /home/u703621028/public_html/
   wp-config.php(92): require_once(‘/home/u70362102…’) #4 /home/u703621028/public_html/
   wp-load.php(29): require_once(‘/home/u70362102…’) #5 /home/u703621028/public_html/
   wp-blog-header.php(12): require_once(‘/home/u70362102…’) #6 /home/u703621028/
   public_html/index.php(17): require(‘/home/u70362102…’) #7 {main} thrown in /home/
   u703621028/public_html/wp-content/plugins/facebook-publish/lib/class/hybridauth/
   Hybrid/Auth.php on line 152
 * The server version of php PHP Version 5.5.21
 * What can I do?
 *  Plugin Author [Pramod Jodhani](https://wordpress.org/support/users/promz/)
 * (@promz)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-with-authorize-plugin/#post-5394807)
 * Hello ezaz,
 * Can you please make sure that:
 * 1. You have followed the [guide to set up the plugin ](http://codeholic.in/setting-up-facebook-publish-wordpress-plugin/)
   and Facebook App
 * 2. Authorized the App from Facebook authorization screen
 * If yes then, can you please reset the plugin and then try again.
 * If problem still persists then please tell me the steps to replicate the problem.
 * Thanks
 *  [ezaz](https://wordpress.org/support/users/ezaz/)
 * (@ezaz)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-with-authorize-plugin/#post-5394808)
 * Hello
 * 1 yes
    2. Yes, and this is right after it threw an exception
 * I created the app again, pictures of the process:
 * You might not recognize the version of PHP?
 * Thank you
 *  [ezaz](https://wordpress.org/support/users/ezaz/)
 * (@ezaz)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-with-authorize-plugin/#post-5394809)
 * Hello
 * 1 yes
    2. Yes, and this is right after it threw an exception
 * I created the app again.
 * Pictures made the process but I can not upload it here.
 * You might not recognize the version of PHP?
 * Thank you
 *  [manojksaroj1983](https://wordpress.org/support/users/manojksaroj1983/)
 * (@manojksaroj1983)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-with-authorize-plugin/#post-5394813)
 * Fatal error: Uncaught exception ‘Exception’ with message ‘Authentication failed!
   Facebook returned an invalid user id.’ in /home/mrwebl9a/public_html/wp-content/
   plugins/facebook-publish/lib/class/hybridauth/Hybrid/Auth.php:152 Stack trace:#
   0 /home/mrwebl9a/public_html/wp-content/plugins/facebook-publish/lib/class/hybridauth/
   Hybrid/Auth.php(39): Hybrid_Auth::initialize(‘/home/mrwebl9a/…’) #1 /home/mrwebl9a/
   public_html/wp-content/plugins/facebook-publish/init.php(29): Hybrid_Auth->__construct(‘/
   home/mrwebl9a/…’) #2 /home/mrwebl9a/public_html/wp-settings.php(215): include_once(‘/
   home/mrwebl9a/…’) #3 /home/mrwebl9a/public_html/wp-config.php(92): require_once(‘/
   home/mrwebl9a/…’) #4 /home/mrwebl9a/public_html/wp-load.php(29): require_once(‘/
   home/mrwebl9a/…’) #5 /home/mrwebl9a/public_html/wp-blog-header.php(12): require_once(‘/
   home/mrwebl9a/…’) #6 /home/mrwebl9a/public_html/index.php(17): require(‘/home/
   mrwebl9a/…’) #7 {main} thrown in /home/mrwebl9a/public_html/wp-content/plugins/
   facebook-publish/lib/class/hybridauth/Hybrid/Auth.php on line 152
 * i have tried everything like reset the plugin, server version of php PHP Version
   5.5.21 but i got same problem while authorizing now button

Viewing 12 replies - 1 through 12 (of 12 total)

 The topic ‘Error with authorize plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/facebook-publish_b4619e.svg)
 * [Facebook Publish](https://wordpress.org/plugins/facebook-publish/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facebook-publish/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-publish/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-publish/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-publish/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-publish/reviews/)

 * 12 replies
 * 5 participants
 * Last reply from: [manojksaroj1983](https://wordpress.org/support/users/manojksaroj1983/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/error-with-authorize-plugin/#post-5394813)
 * Status: resolved