WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Simple Facebook Connect] Unable to post to Fan Page (25 posts)

  1. ozzyman778
    Member
    Posted 2 years ago #

    Hi,

    I have used SFC in the past with little issues other than getting the facebook app settings correct however I am experiencing an issue I have been unable to correct.

    I hit "grant SFC permission" the facebook window pops up and says I am granting it permissions to post to all my pages, profile, etc... I get the following after this:

    User ID and Access Token found! Automatic profile publishing is ready to go!

    Application Access Token not found. Cannot autopublish to Facebook Application. Try re-saving this page.

    Fan Page Access Token not found. Cannot autopublish to Facebook Page. Try re-saving this page.

    So I have tried uninstalling the App and re installing, same outcome after granting access again. For the record My Fan page has a username (facebook.com/myfanpage) I did manage to find the ID by clicking on edit page and coping the ID from the url there. I am very confused on the issue here so any help would be appreciated!

    I have also tried uninstalling SFC and re installing with no luck.

    I am wondering if it is a settings issue on the application side because Facebook seems to have totally changed the way they are setup up in the settings page. Luckily I already had a app setup previously and i mirrored its settings to this new pages app.

  2. ozzyman778
    Member
    Posted 2 years ago #

    Update:

    I can manually hit the "publish to Fan Page" button on any page/post edit screen and it will post to my fan page.

    This is very confusing so any help is much appreciated!

  3. ozzyman778
    Member
    Posted 2 years ago #

    Bump

    Still have been unable to fix this issue

    Could it be caused by the fact that this was not originally my fan page but is instead my Wife's fan page which she has granted me admin privleges?

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 2 years ago #

    If you're getting "Application Access Token not found", then you have a more fundamental problem, since that doesn't rely on the page settings in any way at all.

    If your server doesn't have the capability to talk to facebook's servers via SSL, then it won't be able to get the access tokens. This usually is because your PHP was compiled without OpenSSL support.

    There's no good fix for this other than to use your hosting system to recompile PHP with SSL support. If they provide that option. Facebook requires SSL communication, for security.

  5. ozzyman778
    Member
    Posted 2 years ago #

    So then why would one say it found a token but the application and fan page token not be found?

    Could it be the app settings?

  6. ozzyman778
    Member
    Posted 2 years ago #

    Also the app does allow me to manually hit publish to facebook fan page while editing and in the window that pops up it does it via my app that i set up....

    Really confused what the issue is.

  7. Samuel Wood (Otto)
    Tech Ninja
    Posted 2 years ago #

    The personal token is not the same as the application and page token. Personal tokens come from your browser and the cookie interaction. App and Page tokens have to be gotten directly from FB in other ways.

    And the manual publishing is from your browser to Facebook directly, not going through the plugin or your web server at all. This is done with Javascript and Facebook's own code.

  8. scott74
    Member
    Posted 2 years ago #

    I have searched and searched but cannot find a fix for this .. .I am using Wp 3.3.1 and the latest version of SFC

    i have removed app and regranted permission but still get the error

    Fan Page Access Token not found. Cannot autopublish to Facebook Page. Try re-saving this page.

    See screen shot here http://imm.io/f56I

    Is there a way to fix this issue?

  9. scott74
    Member
    Posted 2 years ago #

    Figured out .. had wrong id for the fanpage in the settings of sfc..... :)

  10. TheHighPlainsDrifter
    Member
    Posted 2 years ago #

    im still getting this error

  11. bhyman
    Member
    Posted 2 years ago #

    I am able to setup automatic fan page posting, and it works for a while. But somehow, after a day or so it stops posting automatically and I get the following error on the SFC Settings page:

    "Fan Page Access Token not found. Cannot autopublish to Facebook Page. Try re-saving this page."

    If I click the Grant SFC Permissions button then re-save settings, things start working again. Really hate having to reestablish the permissions in order for auto posting to work. Any thoughts?

  12. bhyman
    Member
    Posted 2 years ago #

    Bump

  13. xavivars
    Member
    Posted 2 years ago #

    I have the same issue, "Fan Page Access Token" seems to get lost every few days.

  14. Samuel Wood (Otto)
    Tech Ninja
    Posted 2 years ago #

    Not sure how it could lose the token.. That's stored in the database with the options. If it's "not found" then the options got re-saved without it or something similar. Tokens as stored by the plugin don't expire.

  15. xavivars
    Member
    Posted 2 years ago #

    Yes, I know it's very strange, but it just happened again. I've checked the preferences page, and 3 lines were green, I pressed "save" and the last one's (page access token) changed to "white" with the error "Fan Page Access Token not found. Cannot autopublish to Facebook Page. Try re-saving this page.".

    I tried to save again without luck, and I had to click again the grant permissions button. After reloading the page (also, after a manual save later), three lines keep being green.

    I don't know if there's any way to "log" db queries to find the problem

  16. xavivars
    Member
    Posted 2 years ago #

    It keeps happening a lot of times. Does the plugin "reloads" the tokens stored in the database in any way? If the user logs out from FB, or if it logins to WordPress without being logged into FB?

    I granted permissions, but usually, the user who posts is another one. Do you know if this has any problem?

  17. xavivars
    Member
    Posted 2 years ago #

    Finally found the problem.

    In the "Advanced" options of the Facebook application, there's a new feature called "deprecate offline_access", which is enabled by default, and when selected, fan page acces token does not have "offline_accesss", that is, permeanent access to post to the fan page. That's why sometimes worked and sometimes didn't.

    Hope it helps someone else.

  18. bhyman
    Member
    Posted 2 years ago #

    Excellent. Will try to confirm that this fixes the problem for me as well. Thanks Xavivars.

  19. Samuel Wood (Otto)
    Tech Ninja
    Posted 2 years ago #

    That must be a new thing, because I've never seen it before. It was disabled on my already existing applications.

    Yes, that definitely has to be set to "disabled", otherwise the whole thing will stop working when you logout of FB.

  20. sdeitmer
    Member
    Posted 2 years ago #

    offline_access is deprecated and will be completely removed soon. Instead, access tokens have to be exchanged for tokens with extended expiration time.

    Recommended reading: https://developers.facebook.com/docs/offline-access-deprecation/

  21. Samuel Wood (Otto)
    Tech Ninja
    Posted 2 years ago #

    Yes, I know, however FB hasn't really thought this through since having it just stop working when you don't visit the site and re-confirm every 60 days is kinda a crap solution too.

  22. Samuel Wood (Otto)
    Tech Ninja
    Posted 2 years ago #

    Also, they don't explain how to deal with logouts, since these "extended" access tokens seem to instantly become invalid when the user logs out of Facebook.

  23. davouch
    Member
    Posted 2 years ago #

    Plus one here with:
    User ID and Access Token found!
    Application Access Token not found. Try re-saving this page.

    My setup:
    WP 3.3.1 + SFC 1.3
    OpenSSL 0.9.8g 19 Oct 2007

    deprecate offline_access = disabled

    Any clues what might be going on here?

    Otherwise it is hard not to be just grateful for this plugin, it is an awesome piece of work, Otto!

  24. lzs
    Member
    Posted 2 years ago #

    Thanks for the information about offline_access. I was trying very hard to figure out what was wrong. I hope whatever FB does, they don't break how apps need this offline access to post to pages. The token for me is breaking within like a day or two, hardly anywhere near a week, let alone 60 days.

  25. runewl
    Member
    Posted 2 years ago #

    Hello, I cant get this to work, get the: "Fan Page Access Token not found. Try re-saving this page." error.

    Running all the new updates.

Topic Closed

This topic has been closed to new replies.

About this Topic