[bd] Social Share [Paid] 2.3.0

XenForo gets social.

  1. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    It depends on your content, but normally the html output comes straight from bb code formatter so it shouldn't have "too many" break. Do you have an example?
     
    1. tohaitrieu

      tohaitrieu New Member

      tohaitrieu @xfrocks Example: I have an poem in my post. And have an line break for short sentence with br tag. --> It not convert from br tag to p tag as long sentence. Xenforo use br tag to break the line.
       
    2. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @tohaitrieu Can you post the bb code of that post and the output for Instant Article?
       
  2. anto74

    anto74 Member

    I have problem. The tread sharing to FB works only for admin but not for registered users. The permission are OK
    When user check post to Facebook In thread reply the page refresh and is unchecked.
    Thanks
     
  3. anto74

    anto74 Member

    Then problem is also in your site, here.
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @anto74 It's likely because of a permission problem with your connected Facebook account. In that situation, there will be a notice at the top of every page which asks you to authenticate any missing permissions. Do you see it here?
       
    2. anto74

      anto74 Member

      anto74 @xfrocks No, the page loaded when I click to Facebook? box disappear and is not loaded. In my site the same...only for admin user works
       
  4. 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) {
      }
    }
     
  5. 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"
      }
    }
     
  6. xfrocks

    xfrocks XenForo rocks!
    Staff Member

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

    RoldanLT Active Member

    Not happening now.
    Seems happen to me the whole day.
    and I think I reached twitter API limit.
     
  8. 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!
     
  9. thienbui

    thienbui Member

    How to fix
     

    Attached Files:

  10. 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"
      }
    }
    
     
  11. 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
     
  12. 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?
     
  13. RoldanLT

    RoldanLT Active Member

    Yes already resolved.
    I think just some sort of limit via Twitter API.
    All fine now.
     
    xfrocks likes this.
  14. 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
     
  15. 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"
      }
    }
     
  16. RoldanLT

    RoldanLT Active Member

  17. 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 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.
       
  18. 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
     
  19. 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
  20. 3rd Angle

    3rd Angle New Member

    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

Loading...