MyBB Community Forums

Full Version: MyBBPublisher v2.0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i do not recall that setting when i built my app the first time (they have made a couple changes since then), but i assume that if you leave it blank, you should be okay
(2011-02-06, 01:09 AM)pavemen Wrote: [ -> ]i do not recall that setting when i built my app the first time (they have made a couple changes since then), but i assume that if you leave it blank, you should be okay

Yeah, but I wanted to know how it worked. Ideally, the app would only be used by our website IP right?

Does each request to use the app we created come from users who make a post or announcement then?


Thanks! Smile

it uses your own api key and credentials (as tokens) so unless that information gets out, only your site should be able to publish
Is it possible to format the output on facebook?
For example, it would be better if the thread title is bold.

How can that be done?
if you can format a status update directly in Facebook, then you can likely format it in the plugin before sending. However, i am not sure how to format in Facebook.
Ok, thanks
Hey pavemen, I've been using MyBBPublisher pretty much since day one and love it. But, I've been tring to get it working on another forum for the last couple of days and am having problems.

I uploaded the files, created the facebook and twitter apps, input the keys, tokens, secrets and API's, created the One-Time Token and granted permission for the app to post to the facebook wall, but nothing posts to either twitter or facebook.

I have tried uninstalling and re-installing the plugin, changing the forums to post from between inclusive and exclusive, etc, etc, to no avail.

Any thoughts on what the heck is wrong?


what is in the cache entries for mybbpublisher_errors_xx (xx woulb tw or fb)?
(2011-02-16, 03:28 PM)pavemen Wrote: [ -> ]what is in the cache entries for mybbpublisher_errors_xx (xx woulb tw or fb)?

I do not have a cache for facebook at all, but below is what I have in mybbpublisher_error_tw.

I did catch that I had used the wrong token though, and have corrected it, and verified all other input fields:
Forum ID: 
object(EpiTwitterNotAuthorizedException)#17 (6) {
  ["message:protected"]=>
  string(86) "{"request":"\/1\/account\/verify_credentials.json","error":"Invalid \/ expired Token"}"
  ["string:private"]=>
  string(0) ""
  ["code:protected"]=>
  int(401)
  ["file:protected"]=>
  string(80) "/home/blitz/public_html/reviews/inc/plugins/mybbpublisher/twitter/EpiTwitter.php"
  ["line:protected"]=>
  int(256)
  ["trace:private"]=>
  array(9) {
    [0]=>
    array(6) {
      ["file"]=>
      string(80) "/home/blitz/public_html/reviews/inc/plugins/mybbpublisher/twitter/EpiTwitter.php"
      ["line"]=>
      int(218)
      ["function"]=>
      string(5) "raise"
      ["class"]=>
      string(19) "EpiTwitterException"
      ["type"]=>
      string(2) "::"
      ["args"]=>
      array(2) {
        [0]=>
        object(EpiCurlManager)#16 (2) {
          ["key:private"]=>
          string(15) "Resource id #65"
          ["epiCurl:private"]=>
          object(EpiCurl)#13 (9) {
            ["mc:private"]=>
            resource(64) of type (curl_multi)
            ["msgs:private"]=>
            NULL
            ["running:private"]=>
            int(0)
            ["execStatus:private"]=>
            int(0)
            ["selectStatus:private"]=>
            NULL
            ["sleepIncrement:private"]=>
            float(1.1)
            ["requests:private"]=>
            array(1) {
              ["Resource id #65"]=>
              resource(65) of type (Unknown)
            }
            ["responses:private"]=>
            array(1) {
              ["Resource id #65"]=>
              array(7) {
                ["headers"]=>
                array(11) {
                  ["Date"]=>
                  string(29) "Wed, 16 Feb 2011 18:04:46 GMT"
                  ["Server"]=>
                  string(2) "hi"
                  ["Status"]=>
                  string(16) "401 Unauthorized"
                  ["WWW-Authenticate"]=>
                  string(25) "Basic realm="Twitter API""
                  ["Content-Type"]=>
                  string(31) "application/json; charset=utf-8"
                  ["Content-Length"]=>
                  string(2) "86"
                  ["Cache-Control"]=>
                  string(21) "no-cache, max-age=300"
                  ["Set-Cookie"]=>
                  string(192) "_twitter_sess=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%250ASGFzaHsABjoKQHVzZWR7AA%253D%253D--1164b91ac812d853b877e93ddb612b7471bebc74; domain=.twitter.com; path=/; HttpOnly"
                  ["Expires"]=>
                  string(29) "Wed, 16 Feb 2011 18:09:46 GMT"
                  ["Vary"]=>
                  string(15) "Accept-Encoding"
                  ["Connection"]=>
                  string(5) "close"
                }
                ["data"]=>
                string(86) "{"request":"\/1\/account\/verify_credentials.json","error":"Invalid \/ expired Token"}"
                ["code"]=>
                int(401)
                ["time"]=>
                float(0.18699)
                ["length"]=>
                float(86)
                ["type"]=>
                string(31) "application/json; charset=utf-8"
                ["url"]=>
                string(56) "http://api.twitter.com/1/account/verify_credentials.json"
              }
            }
            ["properties:private"]=>
            array(5) {
              ["code"]=>
              int(2097154)
              ["time"]=>
              int(3145731)
              ["length"]=>
              int(3145743)
              ["type"]=>
              int(1048594)
              ["url"]=>
              int(1048577)
            }
          }
        }
        [1]=>
        bool(false)
      }
    }
    [1]=>
    array(6) {
      ["file"]=>
      string(80) "/home/blitz/public_html/reviews/inc/plugins/mybbpublisher/twitter/EpiTwitter.php"
      ["line"]=>
      int(119)
      ["function"]=>
      string(5) "__get"
      ["class"]=>
      string(14) "EpiTwitterJson"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        string(8) "response"
      }
    }
    [2]=>
    array(6) {
      ["file"]=>
      string(80) "/home/blitz/public_html/reviews/inc/plugins/mybbpublisher/twitter/EpiTwitter.php"
      ["line"]=>
      int(36)
      ["function"]=>
      string(7) "request"
      ["class"]=>
      string(10) "EpiTwitter"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(3) {
        [0]=>
        string(3) "GET"
        [1]=>
        string(32) "/account/verify_credentials.json"
        [2]=>
        NULL
      }
    }
    [3]=>
    array(6) {
      ["file"]=>
      string(61) "/home/blitz/public_html/reviews/inc/plugins/mybbpublisher.php"
      ["line"]=>
      int(1046)
      ["function"]=>
      string(3) "get"
      ["class"]=>
      string(10) "EpiTwitter"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        string(32) "/account/verify_credentials.json"
      }
    }
    [4]=>
    array(4) {
      ["file"]=>
      string(61) "/home/blitz/public_html/reviews/inc/plugins/mybbpublisher.php"
      ["line"]=>
      int(664)
      ["function"]=>
      string(28) "mybbpublisher_tw_post_update"
      ["args"]=>
      array(1) {
        [0]=>
        &array(1) {
          [0]=>
          array(5) {
            ["type"]=>
            string(1) "t"
            ["id"]=>
            string(2) "18"
            ["msg"]=>
            string(0) ""
            ["url"]=>
            string(0) ""
            ["postid"]=>
            string(1) "0"
          }
        }
      }
    }
    [5]=>
    array(4) {
      ["file"]=>
      string(53) "/home/blitz/public_html/reviews/inc/class_plugins.php"
      ["line"]=>
      int(101)
      ["function"]=>
      string(23) "mybbpublisher_delthread"
      ["args"]=>
      array(1) {
        [0]=>
        &int(18)
      }
    }
    [6]=>
    array(6) {
      ["file"]=>
      string(56) "/home/blitz/public_html/reviews/inc/class_moderation.php"
      ["line"]=>
      int(165)
      ["function"]=>
      string(9) "run_hooks"
      ["class"]=>
      string(12) "pluginSystem"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(2) {
        [0]=>
        &string(23) "mybbpublisher_delthread"
        [1]=>
        &array(1) {
          [0]=>
          &int(18)
        }
      }
    }
    [7]=>
    array(6) {
      ["file"]=>
      string(49) "/home/blitz/public_html/reviews/inc/functions.php"
      ["line"]=>
      int(2025)
      ["function"]=>
      string(13) "delete_thread"
      ["class"]=>
      string(10) "Moderation"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(2) {
        [0]=>
        &string(36) "class_moderation_delete_thread_start"
        [1]=>
        &int(18)
      }
    }
    [8]=>
    array(4) {
      ["file"]=>
      string(44) "/home/blitz/public_html/reviews/editpost.php"
      ["line"]=>
      int(232)
      ["function"]=>
      string(13) "delete_thread"
      ["args"]=>
      array(1) {
        [0]=>
        &string(2) "18"
      }
    }
  }
}


===========================================


are you using the same version of the plugin on the same version of MyBB for each forum?