Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 12, 2009 @ 20:22
    Sebastiaan Janssen
    1

    It's not tweeting yet

    Hey Darren, this seems like an awesome package! However, somehow it's not working for me.

    Hope you can help me out. I've changed the document_type alias from BlogPostComment to blogpostcomment because of the lowercasing in the log, did not make any difference though. Other than that, it seems like everything is configured correctly.

    The /umbraco/plugins/DocumentPublishTweet/tweet.config (with the username and password censored obviously, they are correct though):

    <config>
      <accounts>
        <account key="mainaccount">
          <login>username</login>
          <password>password</password>
        </account>
      </accounts>
      <document_types>
        <document_type alias="blogpostcomment">
          <tweets>
            <tweet>
              <account>mainaccount</account>
              <message>d sebastiaan #title# - #url#</message>
            </tweet>
          </tweets>
        </document_type>
      </document_types>
    </config>

    The umbracoLog messages:

    userId NodeId Datestamp logHeader logComment 0 -1 2009-09-12 20:07:56.037 Debug Xml saved in 00:00:00.0022162 0 -1 2009-09-12 20:07:56.037 Debug Xml saved in 00:00:00.0026981 0 1218 2009-09-12 20:07:56.033 Publish   0 -1 2009-09-12 20:07:56.030 Debug FMDOCTWEET:: Doctype is: blogpostcomment. host is: cultiv.nl 0 -1 2009-09-12 20:07:56.030 Debug FMDOCTWEET:: Firing event 0 1218 2009-09-12 20:07:56.023 Publish  

     

  • bob baty-barr 1180 posts 1294 karma points MVP
    Sep 13, 2009 @ 00:29
    bob baty-barr
    0

    i was never able to get this working either,  but i chalked it up to user failure and had to move away from working on my site to paying gigs :P if you figure it out, let me know!

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Sep 15, 2009 @ 10:54
    Darren Ferguson
    0

    @bob - I did a complete rewrite since you had those issues before.

    @Sebastiaan - Am looking into your issue now.

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Sep 15, 2009 @ 10:56
    Darren Ferguson
    1

    @Sebastiaan can you try adding a domain_filter attrib to your tweet as specified in the docs and let me know if that works for you.

    I can be empty. I think I have a bug where it will throw an expection if the domain filter attrib were to be null.

     

     

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 21, 2009 @ 12:26
    Sebastiaan Janssen
    0

    Unfortunately, I am still getting the same messages in the log file, the config file now looks like this:

    <config>
      <accounts>
        <account key="mainaccount">
          <login>cultiv</login>
          <password>123barry</password>
        </account>
      </accounts>
      <document_types>
        <document_type alias="blogpostcomment">
          <tweets>
            <tweet domain_filter="cultiv.nl">
              <account>mainaccount</account>
              <message>d sebastiaan #title# - #url#</message>
            </tweet>
          </tweets>
        </document_type>
      </document_types>
    </config>

    Maybe I have some uncommon set-up? Windows 2008 server (IIS 7), extensionless URL's maybe?

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Sep 21, 2009 @ 13:38
    Darren Ferguson
    0

    Does your log table extract still look the same after those config changes?

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 21, 2009 @ 13:39
    Sebastiaan Janssen
    0

    Yes sir, as stated in my previous comment.. ;-)

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Sep 21, 2009 @ 14:15
    Darren Ferguson
    0

    I'm afraid it is a bit of a mystery to me at the moment.

    Could you perhaps try it with an empty domain_filter attribute?

    You config and O/S shouldn't make any difference at all.

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 23, 2009 @ 05:50
    Sebastiaan Janssen
    0

    Sorry, still no dice. I tried an empty domain filter, I tried to include "www.", als I saw in the log that my index was corrupt, so I did a re-index, tried all options again to make sure that the index wasn't interfering. Still nothing.

    The config should not make a difference, but might still be the fact that I'm running the .net 3.5 config and IIS is in pipeline mode?

  • dillorscroft 198 posts 192 karma points
    Oct 28, 2009 @ 17:30
    dillorscroft
    0

    I'm having the same issue.  Do you think it could be a security issue on Windows 7?  

  • dillorscroft 198 posts 192 karma points
    Oct 28, 2009 @ 18:03
    dillorscroft
    0

    The log file says it's been tweeted as well as the fact that I have stepped through it using a debugger and the event it fired. 

    I'm not sure what I should be getting back from Twitter but it doesnt seem like the correct info.

  • dillorscroft 198 posts 192 karma points
    Oct 28, 2009 @ 18:06
    dillorscroft
    0
    <?xml version="1.0" encoding="UTF-8"?><status>  <created_at>Wed Oct 28 16:10:11 +0000 2009</created_at>  
    <id>5233772887</id>  <text>Test</text>  <source>&lt;a href=&quot;http://echofon.com/&quot; 
    rel=&quot;nofollow&quot;&gt;Echofon&lt;/a&gt;</source>  <truncated>false</truncated>  
    <in_reply_to_status_id></in_reply_to_status_id>  <in_reply_to_user_id></in_reply_to_user_id>  
    <favorited>false</favorited>  <in_reply_to_screen_name></in_reply_to_screen_name>  <user>    <id>85845970</id>    
    <name>Matt Perry</name>    <screen_name>nmis_test</screen_name>    <location></location>    <description></description>  
      <profile_image_url>http://s.twimg.com/a/1256674706/images/default_profile_0_normal.png</profile_image_url>   ; 
    <url></url>    <protected>false</protected>    <followers_count>0</followers_count>    
    <profile_background_color>9ae4e8</profile_background_color>    <profile_text_color>000000</profile_text_color>    
    <profile_link_color>0000ff</profile_link_color>    <profile_sidebar_fill_color>e0ff92</profile_sidebar_fill_color>    
    <profile_sidebar_border_color>87bc44</profile_sidebar_border_color>    <friends_count>0</friends_count>    
    <created_at>Wed Oct 28 15:51:05 +0000 2009</created_at>    <favourites_count>0</favourites_count>    
    <utc_offset></utc_offset>    <time_zone></time_zone>    
    <profile_background_image_url>http://s.twimg.com/a/1256674706/images/themes/theme1/bg.png</profile_background_image_url>; 
       <profile_background_tile>false</profile_background_tile>    <statuses_count>1</statuses_count>    
    <notifications>false</notifications>    <geo_enabled>false</geo_enabled>    <verified>false</verified>    
    <following>false</following>  </user>  <geo/></status>
  • dillorscroft 198 posts 192 karma points
    Oct 28, 2009 @ 18:07
    dillorscroft
    0

    Sorry!!!   Basically I get back no notification of success, just my own details echoed.

  • dillorscroft 198 posts 192 karma points
    Oct 28, 2009 @ 18:22
    dillorscroft
    1

    Hi,

    I've sorted it.  Basically when the NiceURL pulls back an enormous URL Twitter doesnt accept it and echoes back the previous tweet.  Tweet on Publish doesnt see any error and logs a success.

    Guess I need to inject a URL Shortening piece of code after NiceURL is called.

    Great package Darren.

  • dillorscroft 198 posts 192 karma points
    Oct 28, 2009 @ 18:25
    dillorscroft
    1

    Guess I'm talking to myself but for the beneift of others it is simply the length of the wholeTweet because of the resultant enormous URL that has caused this.

Please Sign in or register to post replies

Write your reply to:

Draft