Title: [Plugin: Simple Facebook Connect] API Error Code 102
Last modified: August 20, 2016

---

# [Plugin: Simple Facebook Connect] API Error Code 102

 *  Resolved [ddabney](https://wordpress.org/support/users/ddabney/)
 * (@ddabney)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-simple-facebook-connect-api-error-code-102/)
 * I keep getting the error code below every time I click “Publish to Facebook Application”
   or “Publish to Facebook Profile”.
 *     ```
       API Error Code: 102
       API Error Description: Session key invalid or no longer valid
       Error Message: Iframe dialogs must be called with a session key
       ```
   
 * I know there’s something I’m missing here, but dealing with Facebook integration
   always seems to lower my IQ 50 points. Using the latest version from the WP repository.
 * Any help you can give is appreciated!
 * [http://wordpress.org/extend/plugins/simple-facebook-connect/](http://wordpress.org/extend/plugins/simple-facebook-connect/)

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

 *  Plugin Author [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-simple-facebook-connect-api-error-code-102/#post-2297963)
 * Go to the SFC Settings page. Save the settings. This should solve the problem
   by refreshing the session key.
 * If you change your FB password, then your sessions become invalid, and you need
   to resave the SFC settings so it can get a new session.
 * A future version may eliminate this issue.
 *  Thread Starter [ddabney](https://wordpress.org/support/users/ddabney/)
 * (@ddabney)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-simple-facebook-connect-api-error-code-102/#post-2298027)
 * That did it. Thanks a lot for your help!
 *  [robert.glez](https://wordpress.org/support/users/robertglez/)
 * (@robertglez)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-simple-facebook-connect-api-error-code-102/#post-2298464)
 * Hello,
 * I have the same issue. However, resaving the SFC settings doesn’t solve it. What
   could I do?
 * Thanks a lot beforehand.
 * Roberto
 *  [akosner](https://wordpress.org/support/users/akosner/)
 * (@akosner)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-simple-facebook-connect-api-error-code-102/#post-2298466)
 * yes. i’m having the same problem.
 *  Plugin Author [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-simple-facebook-connect-api-error-code-102/#post-2298467)
 * Try clearing your browser cookies, then reloading that Edit Post screen. You’ll
   have to re-login to everything, but it should refresh your browser cookies and
   fix the session keys.
 *  [sandraqu](https://wordpress.org/support/users/sandraqu/)
 * (@sandraqu)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-simple-facebook-connect-api-error-code-102/#post-2298473)
 * I was getting that error, and my plugin is now working having followed two set
   of instructions. I don’t know which of my actions resolved the issue, but here
   is what I did:
 * After following a set of about 10 steps that, sadly, I can not find the URL for,
   I got rid of the 102. Those particular instructions stated to add a “Canvas URL”.
   This got rid of the 102, but gave me other errors— it produced a blurb in the“
   Facebook Publisher” box right of my post while in edit.
 * I then followed these instructions and wallah! it works. These instructions specify
   to go to your FB App page and click “Add to My Page”. They also clarify which
   URL to add in the “Website URL” field of the App settings.
 * [http://solutionsbyheidi.com/2011/10/10/using-simple-facebook-connect/](http://solutionsbyheidi.com/2011/10/10/using-simple-facebook-connect/)
 * This is the way my app is currently setup and working. I hope you find it helpful:
 * Basic info
    Display Name: This Useful App Namespace: thisusefulapp Contact: [user@mydomain.com](https://wordpress.org/support/topic/plugin-simple-facebook-connect-api-error-code-102/user@mydomain.com?output_format=md)
   App Domain: < this is empty >
 * Select how your app integrates with Facebook
    Website Site URL: [http://myblogsdomain.com](http://myblogsdomain.com)
 * App on FB
    Canvas URL: [http://apps.facebook.com/thisusefulapp/](http://apps.facebook.com/thisusefulapp/)
   Secure Canvas URL: [https://apps.facebook.com/thisusefulapp/](https://apps.facebook.com/thisusefulapp/)
 *  Plugin Author [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-simple-facebook-connect-api-error-code-102/#post-2298474)
 * You should not have “App on FB” selected, nor have a Canvas URL there. The Website
   section is all you need.
 *  [sandraqu](https://wordpress.org/support/users/sandraqu/)
 * (@sandraqu)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-simple-facebook-connect-api-error-code-102/#post-2298476)
 * Alright. The plugin stopped working and I have no idea how or why since it was
   the last plugin installed. This is not related to deleting the Canvas URL. It
   stopped working on its own.
 * What I’m wondering is how do you get the “tokens”? Clicking “Grant SFC Permissions”
   button doesn’t do anything.
 *  Plugin Author [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-simple-facebook-connect-api-error-code-102/#post-2298477)
 * Once you grant permissions and Save, the plugin will talk to Facebook and attempt
   to get the necessary tokens.
 * If it can’t get them, then that indicates a communication problem, generally 
   speaking.

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

The topic ‘[Plugin: Simple Facebook Connect] API Error Code 102’ is closed to new
replies.

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

 * 9 replies
 * 5 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-simple-facebook-connect-api-error-code-102/#post-2298477)
 * Status: resolved