[bd] Social Share [Paid] 2.3.0

XenForo gets social.

  1. RoldanLT

    RoldanLT Active Member

    All of a sudden, without any settings changed for several months I got this error now.
    Code:
    Server Error
    
    Abraham\TwitterOAuth\TwitterOAuth->oauth() in bdSocialShare/Helper/Twitter.php at line 127
    TwitterOAuth->getRequestToken() in bdSocialShare/Helper/Twitter.php at line 32
    bdSocialShare_Helper_Twitter::getAuthorizeUri() in bdSocialShare/XenForo/ControllerAdmin/Tools.php at line 148
    bdSocialShare_XenForo_ControllerAdmin_Tools->actionSocialShareAddMoreTwitter() in XenForo/FrontController.php at line 351
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
    XenForo_FrontController->run() in /home/nginx/domains/phcorner.net/public/admin.php at line 13
    Code:
    Server Error Log
    Error Info
    Abraham\TwitterOAuth\TwitterOAuthException: - library/bdSocialShare/Helper/twitteroauth/src/TwitterOAuth.php:141
    Generated By: Draft, 1 minute ago
    Stack Trace
    #0 /home/nginx/domains/domain.com/public/library/bdSocialShare/Helper/Twitter.php(127): Abraham\TwitterOAuth\TwitterOAuth->oauth('oauth/request_t...', Array)
    #1 /home/nginx/domains/domain.com/public/library/bdSocialShare/Helper/Twitter.php(32): TwitterOAuth->getRequestToken('https://www.phc...')
    #2 /home/nginx/domains/domain.com/public/library/bdSocialShare/XenForo/ControllerAdmin/Tools.php(148): bdSocialShare_Helper_Twitter::getAuthorizeUri('https://www.dom...')
    #3 /home/nginx/domains/domain.com/public/library/XenForo/FrontController.php(351): bdSocialShare_XenForo_ControllerAdmin_Tools->actionSocialShareAddMoreTwitter()
    #4 /home/nginx/domains/domain.com/public/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #5 /home/nginx/domains/domain.com/public/admin.php(13): XenForo_FrontController->run()
    #6 {main}
    Request State
    array(3) {
      ["url"] => string(70) "https://www.domain.com/admin.php?tools/social-share/add-more/twitter"
      ["_GET"] => array(1) {
        ["tools/social-share/add-more/twitter"] => string(0) ""
      }
      ["_POST"] => array(0) {
      }
    }
     
  2. RoldanLT

    RoldanLT Active Member

    Code:
    Server Error Log
    Error Info
    bdSocialShare_Exception_Interrupted: a:2:{i:0;s:83:"ronwelllocsin created "Swap pemkey". https://www.domain.com/t/thread.315057/";i:1;N;} - library/bdSocialShare/Model/Twitter.php:98
    Generated By: Unknown Account, 13 minutes ago
    Stack Trace
    #0 /library/bdSocialShare/Model/Publisher.php(152): bdSocialShare_Model_Twitter->publish('4900255483', Object(bdSocialShare_Shareable_Post), Array)
    #1 /library/bdSocialShare/Model/Publisher.php(27): bdSocialShare_Model_Publisher->twitterPublish('4900255483', Object(bdSocialShare_Shareable_Post), Array)
    #2 /library/bdSocialShare/Model/ShareQueue.php(70): bdSocialShare_Model_Publisher->publish('twitter', 'PHC_ONL,encrypt...', Object(bdSocialShare_Shareable_Post), Array)
    #3 /library/bdSocialShare/Model/ShareQueue.php(172): bdSocialShare_Model_ShareQueue->publish(Object(bdSocialShare_Shareable_Post), Array, false, Array)
    #4 /library/bdSocialShare/Deferred/ShareQueue.php(10): bdSocialShare_Model_ShareQueue->runQueue(8)
    #5 /library/XenForo/Model/Deferred.php(295): bdSocialShare_Deferred_ShareQueue->execute(Array, Array, 8, '')
    #6 /library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 8, '', false)
    #7 /library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, 8, '', false)
    #8 /deferred.php(23): XenForo_Model_Deferred->run(false)
    #9 {main}
    Request State
    array(3) {
      ["url"] => string(37) "https://www.domain.com/deferred.php"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(4) {
        ["_xfRequestUri"] => string(48) "/t/thread.315046/"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfToken"] => string(8) "********"
        ["_xfResponseType"] => string(4) "json"
      }
    }
     
  3. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    @RoldanLT probably a network error if that happens in a short time span. Do you still have it?
     
  4. RoldanLT

    RoldanLT Active Member

    Not happening now.
    Seems happen to me the whole day.
    and I think I reached twitter API limit.
     
  5. huuquynh

    huuquynh New Member

    I have the same problem with XenPorta2. In thread view, I can use "Staff Share", but no function in Xenporta2 Article View.

    "Staff Share" button is added on share div on thread view. But there is no share div on Xenporta2 Article View. I think that I must add some modifies on Xenporta2 Article View template.

    Is there any guide @xfrocks? Thanks!
     
  6. thienbui

    thienbui Member

    How to fix
     

    Attached Files:

  7. RoldanLT

    RoldanLT Active Member

    With the latest XenForo version 1.5.14 this addon stops working with this error.
    Code:
    Server Error Log
    
    Error Info
    bdSocialShare_Exception_NotConnected: [bd] Social Share Exception - library/bdSocialShare/Model/Publisher.php:132
    Generated By: Unknown Account, 6 minutes ago
    
    Stack Trace
    #0 /library/bdSocialShare/Model/Publisher.php(27): bdSocialShare_Model_Publisher->twitterPublish('MyTwitter,encrypt...', Object(bdSocialShare_Shareable_Post), Array)
    #1 /library/bdSocialShare/Model/ShareQueue.php(70): bdSocialShare_Model_Publisher->publish('twitter', 'MyTwitter,encrypt...', Object(bdSocialShare_Shareable_Post), Array)
    #2 /library/bdSocialShare/Model/ShareQueue.php(172): bdSocialShare_Model_ShareQueue->publish(Object(bdSocialShare_Shareable_Post), Array, false, Array)
    #3 /library/bdSocialShare/Deferred/ShareQueue.php(10): bdSocialShare_Model_ShareQueue->runQueue(7.9974830150604)
    #4 /library/XenForo/Model/Deferred.php(295): bdSocialShare_Deferred_ShareQueue->execute(Array, Array, 7.9974830150604, '')
    #5 /library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.9974830150604, '', false)
    #6 /library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, 8, '', false)
    #7 /deferred.php(23): XenForo_Model_Deferred->run(false)
    #8 {main}
    
    Request State
    array(3) {
      ["url"] => string(37) "https://www.site.com/deferred.php"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(4) {
        ["_xfRequestUri"] => string(23) "/forums/-/create-thread"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfToken"] => string(8) "********"
        ["_xfResponseType"] => string(4) "json"
      }
    }
    
    
    Server Error Log
    
    Error Info
    bdSocialShare_Exception_NotConnected: [bd] Social Share Exception - library/bdSocialShare/Model/Publisher.php:132
    Generated By: Unknown Account, 2 minutes ago
    
    Stack Trace
    #0 /library/bdSocialShare/Model/Publisher.php(27): bdSocialShare_Model_Publisher->twitterPublish('MyTwitter,encrypt...', Object(bdSocialShare_Shareable_Post), Array)
    #1 /library/bdSocialShare/Model/ShareQueue.php(70): bdSocialShare_Model_Publisher->publish('twitter', 'MyTwitter,encrypt...', Object(bdSocialShare_Shareable_Post), Array)
    #2 /library/bdSocialShare/Model/ShareQueue.php(172): bdSocialShare_Model_ShareQueue->publish(Object(bdSocialShare_Shareable_Post), Array, false, Array)
    #3 /library/bdSocialShare/Deferred/ShareQueue.php(10): bdSocialShare_Model_ShareQueue->runQueue(7.9999990463257)
    #4 /library/XenForo/Model/Deferred.php(295): bdSocialShare_Deferred_ShareQueue->execute(Array, Array, 7.9999990463257, '')
    #5 /library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.9999990463257, '', false)
    #6 /library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, 8, '', false)
    #7 /deferred.php(23): XenForo_Model_Deferred->run(false)
    #8 {main}
    
    Request State
    array(3) {
      ["url"] => string(37) "https://www.site.com/deferred.php"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(4) {
        ["_xfRequestUri"] => string(1) "/"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfToken"] => string(8) "********"
        ["_xfResponseType"] => string(4) "json"
      }
    }
    
     
  8. RoldanLT

    RoldanLT Active Member

    If I try to re-authenticate using "Add another account", I got this error.
    upload_2017-6-7_3-23-11.png
     
  9. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Have you resolved this issue? The message indicated that the user is not connected to the social network. Not technically an error, we have disabled this in future versions.

    The add account flow is XenForo built-in, most likely issue is the Twitter API info is somehow incorrect. Can you double check it?
     
  10. RoldanLT

    RoldanLT Active Member

    Yes already resolved.
    I think just some sort of limit via Twitter API.
    All fine now.
     
    xfrocks likes this.
  11. Itworx4me

    Itworx4me New Member

    #504 Itworx4me, Nov 26, 2017
    Last edited: Nov 26, 2017
    With out going through this whole thread. Are there instructions on how to setup this addon up?

    Thanks,
    Itworx4me
     
  12. RoldanLT

    RoldanLT Active Member

    I hope you have some spare time to help me on this @xfrocks.
    After I update to PHP 7.2.0, I got this error:
    Code:
    Server Error Log
    
    Error Info
    Error: Call to undefined function mcrypt_decrypt() - library/bdSocialShare/Crypt.php:26
    Generated By: Unknown Account, 1 minute ago
    
    Stack Trace
    #0 /library/bdSocialShare/Crypt.php(12): bdSocialShare_Crypt::aes128_decrypt('U\xDDC\xA8CeF\x82:D\xD0\xB2\x89e7...', '[\xF6n+\xC3\eE\xBC\x10_-\xDC6*\xC2...')
    #1 /library/bdSocialShare/Helper/Common.php(16): bdSocialShare_Crypt::decrypt('Vd1DqENlRoI6RNC...', 'Twitter_User')
    #2 /library/bdSocialShare/Model/Publisher.php(121): bdSocialShare_Helper_Common::parseTargetId('Twitter_User,encrypt...')
    #3 /library/bdSocialShare/Model/Publisher.php(27): bdSocialShare_Model_Publisher->twitterPublish('Twitter_User,encrypt...', Object(bdSocialShare_Shareable_Post), Array)
    #4 /library/bdSocialShare/Model/ShareQueue.php(70): bdSocialShare_Model_Publisher->publish('twitter', 'Twitter_User,encrypt...', Object(bdSocialShare_Shareable_Post), Array)
    #5 /library/bdSocialShare/Model/ShareQueue.php(172): bdSocialShare_Model_ShareQueue->publish(Object(bdSocialShare_Shareable_Post), Array, false, Array)
    #6 /library/bdSocialShare/Deferred/ShareQueue.php(10): bdSocialShare_Model_ShareQueue->runQueue(8)
    #7 /library/XenForo/Model/Deferred.php(295): bdSocialShare_Deferred_ShareQueue->execute(Array, Array, 8, '')
    #8 /library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 8, '', false)
    #9 /library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, 8, '', false)
    #10 /deferred.php(23): XenForo_Model_Deferred->run(false)
    #11 {main}
    
    Request State
    array(3) {
      ["url"] => string(37) "https://domain.com/deferred.php"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(4) {
        ["_xfRequestUri"] => string(39) "/forums/forum-name.134/"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfToken"] => string(8) "********"
        ["_xfResponseType"] => string(4) "json"
      }
    }
     
  13. RoldanLT

    RoldanLT Active Member

  14. Itworx4me

    Itworx4me New Member

    I have been working on trying to get this addon to work with facebook. I think I have narrowed it down to facebook not having the correct permissions.

    publish pages
    manage pages
    publish actions

    When I activate this on facebook they want a laundry list of information about the addon. Is this really what people have to go through in order to get your addon to work on there site??

    Need some help here please?

    Thanks,
    Itworx4me
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @Itworx4me The permissions are only requested for admin. Normal users are not being asked with all those permissions. And yes, those are required if you want to use those advanced features (publish to page, publish to group, etc.). Facebook is very strict about those permissions though, you need to submit a detail request to have them approved.
       
    2. Itworx4me

      Itworx4me New Member

      Itworx4me @xfrocks Do you need those permission to have your addon post to Facebook automatically?

      Thanks
      Itworx4me
       
    3. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @Itworx4me It depends on the target. If you use personal timeline then no, those permissions are not required. If you use page/group then yes.
       
    4. Itworx4me

      Itworx4me New Member

      Itworx4me @xfrocks So if I had a forum setup to post automatically to Facebook anytime a post is posted from a user. What permissions would that take?
       
    5. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @Itworx4me As I said, it depends on the target. If you plan to post to a Facebook page/group, it will require extra permissions. Otherwise only the publish actions are required. And only the admin needs to grant the permissions btw, forum user doesn't even need a Facebook account. The post will be posted under the admin account.
       
  15. Itworx4me

    Itworx4me New Member

    @xfrocks it’s been 48 hours and no response to my post. I paid for support. Say you will answer in 24 hours guaranteed. :(
    Thanks
    Itworx4me
     
  16. netzrate

    netzrate New Member

    Hi There,

    I´m the new one here :)
    I have a question: I want that every Thread reply postet on Twitter. I don´t found it in the Options, see attach Picture. What is worng? I set the Option "Thread reply" but only if there is a new Thread there is a Post on Twitter.

    Regards
    Michael
     

    Attached Files:

    • 01.png
      01.png
      File size:
      53.1 KB
      Views:
      0
    • 02.png
      02.png
      File size:
      9.9 KB
      Views:
      0
  17. 3rd Angle

    3rd Angle New Member

    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

  18. colcar

    colcar New Member

    I set this up to post threads to FB and Twit using STAFF SHARE today but each time I try to share I get a pop up box that says:

    "An unexpected error occurred. Please try again later."

    I can connect to both my FB and Twitter pages, I tested them and the connection was fine. I also re-uploaded the files but still get the error.

    This is my forum: https://onlyonecardiff.city/forums/cardiff-city-forum.2/

    I've tried a few different threads and still get the error.
     
  19. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Can you check server error log? It should have more info regarding the error.
     
    1. colcar

      colcar New Member

      colcar @xfrocks Here's what's in the Server Error Log, it's strange because I've definitely set the Group Permissions correctly.

      bdSocialShare_Exception_Interrupted: {"error":{"message":"(#200) Requires either publish_actions permission, or manage_pages and publish_pages as an admin with sufficient administrative permission","type":"OAuthException","code":200,"fbtrace_id":"CzXvpMrUTqr"}} - library/bdSocialShare/Model/Facebook.php:119
       
Loading...