WordPress.org

Ready to get started?Download WordPress

Forums

Wordbooker
Double Posting (56 posts)

  1. agMedia34
    Member
    Posted 2 years ago #

    When I make a post and publish ... goes to facebook - great.

    When I edit that post and update ... also goes to facebook. So if I have like 3-4 updates or text edits in a row it blows up my facebook page with repeat posts.

    What can I do about this?

    These are also custom post types - which work fine, but the options window is not visible on the post edit screen to turn on and off ... either all or nothing - which may be the issue, but I think it should check that the post exists before just publishing to facebook on every update of the post ...

    Also I noticed an odd thing when I went to look at my settings to see if there was an option somewhere. It said it wasnt connected and I had to re-authorize my account. Log said ...

    Not a WB user (1) and no overide - give up

    Would love to get this worked out, so any help would be greatly appreciated.

    Thanks

    http://wordpress.org/extend/plugins/wordbooker/

  2. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    How are you editing the posts - i.e. are you using the full post edit, the quick edit or a remote client. Posted edited though the full editor automatically are deselected for publish specifically to stop this happening.

    If the Wordbooker option box doesn't appear on the Edit/Add post page then that implies that Wordbooker isn't set up.

    If you went to the Wordbooker options page and it was saying it needed to be set up then that would imply that your Facebook Auth token has expired.

  3. agMedia34
    Member
    Posted 2 years ago #

    Support information? Im using the latest version of wordpress, an the latest version of the plugin.

    Full post edit screen. When I make a change and click update - it posts again to facebook.

    Not sure if it happens on regular posts yet ... havent had a chance to test that, but on my custom post types is when I notice the double posts. These are also the post types that dont show the individual wordbooker panel.

    Thank you.

  4. agMedia34
    Member
    Posted 2 years ago #

    When I click update - now it goes through the process and I get an error ...

    Error validating access token: The session is invalid because the user logged out.

    Earlier today I was editing a post and it pushed it to facebook 5 times (because I updated 5 times). So why now all of a sudden is my access token not valid?

    Also ... in regards to the support info, I think this was what you were looking for ...

    Please provide the following information about your installation:

    Wordbooker: 2.1.29
    Wordbooker Code Base: 2.1.29 R00 - One of These Days
    Wordbooker ID: 254577506873
    Wordbooker Schema: 5.6
    WordPress: 3.5.1
    Table prefix: BSW_
    PHP: 5.2.17
    PHP Memory Limit: 256M
    PHP Memory Usage (MB): 76.25
    JSON Encode: PHP
    JSON Decode: PHP
    Curl Status: Curl is available and can access Facebook - All is OK ( Response Time was : 0.616521835327 seconds )
    Curl Version: 7.24.0
    JSON Version: 1.2.1
    SimpleXML library: 0.1 (provided by PHP)
    HTTP Output Character Encoding: pass
    Internal PHP Character Encoding: UTF-8
    MySQL: 5.5.23-55
    Database character_set_client : utf8
    Database character_set_connection : utf8
    Database character_set_database : utf8
    Database character_set_filesystem : binary
    Database character_set_results : utf8
    Database character_set_server : utf8
    Database character_set_system : utf8
    Database character_sets_dir : /usr/share/mysql/charsets/
    Database collation_connection : utf8_general_ci
    Database collation_database : utf8_unicode_ci
    Database collation_server : utf8_unicode_ci
    Server : Apache
    Active Plugins :
    BAW Post Views Count ( 2.19.11 )
    BP Group Management ( 0.5.4 )
    BP Show activity liked names ( 1.0 )
    BuddyPress Template Pack ( 1.2.1 )
    BuddyPress Friends Only Activity Stream ( 1.0 )
    BuddyPress Activity Plus ( 1.4.1 )
    BP Group Default Avatar ( 0.1.1 )
    BuddyPress Toolbar ( 1.5.1 )
    BuddyPress ( 1.6.4 )
    BuddyPress Avatar Bubble ( 2.5.1 )
    CubePoints Buddypress Integration ( 1.9.8.9 )
    CubePoints ( 3.2.1 )
    Events Manager ( 5.3.6.1 )
    GD Star Rating ( 1.9.22 )
    List e-mails ( 1.0 )
    MapPress Easy Google Maps ( 2.39.9 )
    Media Grid ( 2.11 )
    Oomph Clone Widgets ( 2 )
    Ultimate Coming Soon Page ( 1.7.2 )
    User Switching ( 0.7.1 )
    WassUp Real Time Analytics ( 1.8.3.1 )
    WordPress SEO ( 1.4.1 )
    WordPress Social Stream ( 1.4.2 )
    WP Clean Up ( 1.2.1 )
    WP Favorite Posts ( 1.5.8 )
    WP-FB-AutoConnect ( 2.5.11 )
    WP FullCalendar ( 0.8.2 )
    WordPress Statistics ( 3.0.2 )

  5. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    Custom post types aren't supported in 2.1.x so very odd things might happen. To fix it - go to the Wordbooker options page and turn off the Default Publish Post to Facebook. Then on regular post types you can chose to publish.

    2.2 (which is in Beta) supports custom post types and allows you to exclude/include them on the main options page and also adds the Wordbooker options block to post types you've enabled posting on. The reason its still in Beta is that people wont give me feedback on new features such as Custom Post Type/Category support so although I think it works I've no idea if its got bugs in it

  6. agMedia34
    Member
    Posted 2 years ago #

    Ill test it for you. Where is the link to download?

    Still curious though - I have all posts selected and it "does" push the custom post types. But why would it repeat when I update?

    I did check on regular posts and where I can see the wordbooker panel. On new - it has a check in "publish this post to facebook". After that the check disappears - so it wont post again.

    Wouldnt this "default" behavior also apply to custom post types?

    Also doesnt explain why suddenly my access token is expired.

  7. agMedia34
    Member
    Posted 2 years ago #

    Just found a link on your site for the new version and made the upgrade. Seems to work just fine and all custom types are showing. I added the ones I wanted to use, and the edit screen now shows the Wordbooker options and the "publish to facebook" is checked on new, unchecked on revisions - like it should be.

    Seems all is well - but doesnt account for why my token keeps expiring.

  8. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    Tokens expiring could be down to several reasons... I can't remember if the last 2.2 Beta has the additional server check in to make sure you can access the server used in the auth token exchange.

  9. agMedia34
    Member
    Posted 2 years ago #

    Okay - but this was an issue also before I upgraded to the beta. Also I just noticed that after updating to the beta, I have this on the top of my custom post pages ...

    Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /wp-content/plugins/wordbooker/includes/wordbooker_opengraph.php on line 86

  10. agMedia34
    Member
    Posted 2 years ago #

    I checked "Disable in-line production of OpenGraph Tags" and the error went away. Maybe my theme was already doing something with OpenGraph ??

    Anyway ... all is good except the access token - and it failed prior to the beta upgrade as well.

  11. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    Its a warning... if you Disable open graph tag production then the code throwing the warning wont run.... But I know what's causing it.

    You need to check your PHP.INI settings as you're dumping warnings to the screen which is big security risk on a production server.

    If you turn on the "Log Access token swapping" and click on the Reset option can you cut and paste each set of diagnostic messages it displays during the process..

  12. agMedia34
    Member
    Posted 2 years ago #

    Sure thing. Ill have to wait until it stops working again though. I dont think a successful connection will give you the info you need.

    php.ini ... hostgator doesnt have one.

  13. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    Then talk to hostgator and ask them how to turn off warning messages being dumped to the screen. There will be a PHP ini file somewhere.. there has to be:

    http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors

    "Note:

    This is a feature to support your development and should never be used on production systems (e.g. systems connected to the internet). "

    What is the IP address of your server... so I can check my server logs to see if the auth handshake is working.

  14. agMedia34
    Member
    Posted 2 years ago #

    Okay, so I did another post and it failed ... so I looked at my logs again. Pasted below and I left out my name and ID's on purpose, but you can see where they were supposed to be.

    Cache Refresh 2013-03-02 00:27:30 Cache Refresh Commence 1

    Cache Refresh 2013-03-02 00:27:30 Cache Refresh for *my name*

    Cache Refresh 2013-03-02 00:27:30 UID length : 15

    Cache Refresh 2013-03-02 00:27:30 Cache processing for user : *my name (fbid)*

    Cache Refresh 2013-03-02 00:27:30 Getting Permisions for : *fbid*

    Authorisation Process 2013-03-02 00:27:31 Unable to get information Error validating access token: The session is invalid because the user logged out. 99

    Everything after that failed ... so I reset my connection and it gave this info ....

    Authorisation Process 2013-03-02 01:04:06 Getting Userdata -
    Authorisation Process 2013-03-02 01:04:06 No session found - lets login and authorise -
    Authorisation Process 2013-03-02 01:04:14 Getting Userdata -
    Authorisation Process 2013-03-02 01:04:15 Checking session (2) -
    Authorisation Process 2013-03-02 01:04:15 Session found. Store it -
    Authorisation Process 2013-03-02 01:04:15 Everything looks good so lets ask them to refresh -
    Access Token Exchange 2013-03-02 01:04:15 Access token was AAAAAO0YAejkBAD7c0BDeyBu6eNZCsEWlZAHFZCB7qMHUoKoR80vvE7CRPgB0fjxP2yucEqpeDmZCowRmaQYwiEFzUmkuYVkJGxJkvJZCodKRmmx2fj1XZB -
    Access Token Exchange 2013-03-02 01:04:15 Access token returns -
    Access Token Exchange 2013-03-02 01:04:15 Return code is -
    Access Token Exchange 2013-03-02 01:04:15 Access token was AAAAAO0YAejkBAD7c0BDeyBu6eNZCsEWlZAHFZCB7qMHUoKoR80vvE7CRPgB0fjxP2yucEqpeDmZCowRmaQYwiEFzUmkuYVkJGxJkvJZCodKRmmx2fj1XZB -
    Access Token Exchange 2013-03-02 01:04:15 Access token is now AAAAAO0YAejkBAD7c0BDeyBu6eNZCsEWlZAHFZCB7qMHUoKoR80vvE7CRPgB0fjxP2yucEqpeDmZCowRmaQYwiEFzUmkuYVkJGxJkvJZCodKRmmx2fj1XZB -
    Access Token Exchange 2013-03-02 01:04:15 Access token updated -

    Reload Page ...

    Cache Refresh 2013-03-02 01:04:53 Cache Refresh Commence 1 -
    Cache Refresh 2013-03-02 01:04:53 Cache Refresh for -
    Cache Refresh 2013-03-02 01:04:53 UID length : 15 -
    Cache Refresh 2013-03-02 01:04:53 Cache processing for user : *fbid* -
    Cache Refresh 2013-03-02 01:04:53 Getting Permisions for : *fbid* -
    Cache Refresh 2013-03-02 01:04:54 User has permssion : publish_stream -
    Cache Refresh 2013-03-02 01:04:54 User has permssion : status_update -
    Cache Refresh 2013-03-02 01:04:54 User has permssion : read_stream -
    Cache Refresh 2013-03-02 01:04:54 User has permssion : create_note -
    Cache Refresh 2013-03-02 01:04:54 User has permssion : photo_upload -
    Cache Refresh 2013-03-02 01:04:54 User has permssion : video_upload -
    Cache Refresh 2013-03-02 01:04:54 User has permssion : manage_pages -
    Cache Refresh 2013-03-02 01:04:54 User has permssion : read_friendlists -
    Cache Refresh 2013-03-02 01:04:54 Additional Permissions needed : 0 -
    Cache Refresh 2013-03-02 01:04:54 Getting Pages administered by : *fbid* -
    Cache Refresh 2013-03-02 01:04:55 Page info for page ID 169925179822418 *My Page Name* -
    Cache Refresh 2013-03-02 01:04:55 Page info for page ID 215882695093107 *Other Page Name (not used)* -
    Cache Refresh 2013-03-02 01:04:55 Page info for page ID 166809506683954 *Other Page Name (not used)* -
    Cache Refresh 2013-03-02 01:04:55 Getting Groups owned or managed by : *fbid* -
    Cache Refresh 2013-03-02 01:04:56 Getting Friends Lists for *fbid* -
    Cache Refresh 2013-03-02 01:04:57 Setting Status Name as : *My Page Name* -
    Cache Refresh 2013-03-02 01:04:57 Setting status as : Just Updated on mydomain.com -
    Cache Refresh 2013-03-02 01:04:57 Setting Status URL as : http://www.facebook.com/mypage -
    Cache Refresh 2013-03-02 01:04:58 Setting user name as : *my name* -
    Cache Refresh 2013-03-02 01:04:58 Cache Refresh Complete for user *fbid*

    And ... it all works again. For now.

  15. agMedia34
    Member
    Posted 2 years ago #

    Would this matter if I am logged into my personal account at the same time as editing things in wordpress admin for the "page" account? Im logged into facebook as me - but using the page as the primary on wordbooker.

  16. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    No - as long as you authenticated against you and not against a group/fan wall you will be fine. Wordbooker uses the user account to run from.

  17. agMedia34
    Member
    Posted 2 years ago #

    Okay, thanks. Did the log tell you anything? Also - what happens if there are comments during the "down time". Will they update when I reset the connection, or just miss importing/exporting all together?

    Heading to bed, will check back in AM.

    Thanks again.

  18. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    Yes:

    Access Token Exchange 2013-03-02 01:04:15 Access token returns -
    Access Token Exchange 2013-03-02 01:04:15 Return code is -
    Access Token Exchange 2013-03-02 01:04:15 Access token was

    This tells me that your server can't see https://wordbooker.tty.org.uk

    If your server can't see that then things wont work.

    2.2 supports Curl and WP_HTTP - which one does it report its using (its in the information section)

  19. agMedia34
    Member
    Posted 2 years ago #

    I see both in the info ... see below ... but Im still confused why it works for a few hours, sometimes even a day or 2, and then it fails. Its still active now from my last reset.

    Server Status

    Wordbooker Release: 2.1.27
    Wordbooker Code Base: 2.2.0 Beta 18 - Hangar 18, Area 51
    Wordbooker ID: 254577506873
    Wordbooker Schema: 5.6
    WordPress: 3.5.1
    Table prefix: BSW_
    PHP: 5.2.17
    PHP Memory Limit: 256M
    PHP Memory Usage (MB): 76.5
    JSON Encode: PHP
    JSON Decode: PHP
    WP_HTTP Status: WP_HTTP can access Facebook - All is OK ( Response Time was : 0.538707971573 seconds )
    Curl Status: Curl is available and can access Facebook - All is OK, you can use the Curl Interface ( Response Time was : 0.607492208481 seconds )
    Curl Version: 7.24.0
    Facebook Interface: WP HTTP
    JSON Version: 1.2.1
    SimpleXML library: 0.1 (provided by PHP)
    HTTP Output Character Encoding: pass
    Internal PHP Character Encoding: UTF-8
    MySQL: 5.5.23-55
    Database character_set_client : utf8
    Database character_set_connection : utf8
    Database character_set_database : utf8
    Database character_set_filesystem : binary
    Database character_set_results : utf8
    Database character_set_server : utf8
    Database character_set_system : utf8
    Database character_sets_dir : /usr/share/mysql/charsets/
    Database collation_connection : utf8_general_ci
    Database collation_database : utf8_unicode_ci
    Database collation_server : utf8_unicode_ci
    Server : Apache

  20. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    If your server cant see wordbooker.tty.org.uk then the token can't exchange which means the short term token given by FB can't be swapped for a long life one

  21. agMedia34
    Member
    Posted 2 years ago #

    Okay. So then how do I fix that? Any ideas?

  22. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    Do you know your server IP address - it could be that its been firewalled at my end due to the amount of spam coming out of some hosting companies.

    You can check if you can access my server by doing a wget https://wordbooker.tty.org.uk from the command line on your server.

    If that doesn't work then you'll need to ask why hostgator are blocking things.

  23. agMedia34
    Member
    Posted 2 years ago #

    Server IP is 184.173.199.230

    I had them test the wget as well and they said that it works fine for http, not https.

    Then I asked if I could enable it for https, and they replied that it was on your end, but I could use http and it will work. Please advise.

    They also asked me which port you were trying to connect through.

  24. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    I see no access from that IP address at all

    https is enabled and working..

    I am not trying to connect through any port - Wordbooker makes CURL calls and one of those is to the https server on wordbooker.tty.org.uk. So you need to have it that your server can make CURL calls to the https service on wordbooker.tty.org.uk

  25. agMedia34
    Member
    Posted 2 years ago #

    Okay, thank you.

    Would it matter that both of these settings are currently "unchecked"?

    Use Curl for Facebook interface calls :
    Force Curl IP Resolution to IPv4 :

  26. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    By default Wordbooker 2.2 defaults to not using curl to make it more resilient (a lot of shared hosting packages lock curl out). If curl IS available then you can switch to it .. the IPv4 setting is for some servers running IPv6 as well as 4 when DNS resolution doesn't work as expected.

  27. agMedia34
    Member
    Posted 2 years ago #

    Okay, now Im confused, sorry. Servers are not my thing.

    So I need to have my server make CURL calls to https service on your site - but version 2.2 by default does not use CURL, so only check the box if I have CURL available than I check the box to switch to it.

    So if by default, CURL is not used because shared hosting packages block it out (typically) ... they how would I need fr my shared hosting package to allow CURL calls to your https server?

    Im annoyed ... not with you, but Im just lost on this stuff and confused about what I need.

  28. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    If possible using curl is better but its not always possible to make curl connections due to host limitations which is why Wordbooker supports WP_HTTP calls too if you are running 2.2

    So what we know now is that WP_HTTP calls are blocked (as it can't make the token exchange) and CURL is also blocked (as it didn't work under 2.1).

    I have checked my firewall and your server IP is not blocked. So the problem lies with your hosting company.

    Do you have command line access to your server?

  29. agMedia34
    Member
    Posted 2 years ago #

    Yesterday they said they were able to wget from http, but not https. Wouldnt the WP_HTTP ... be http that I "can" access?

    In a nutshell ... when I am on chat with hostgator ... what do I need to ask them for?

  30. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    I dont know... I find it hard to believe that wget worked for http but not https.

    WP_HTTP can't see it either which suggests something is very wrong which is why I asked if you have command line access to the server

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.