[twitter-dev] Re: custom share button and following - works for one twitter user but not for another

2011-02-28 Thread KennyB
Thanks for the question. Sorry, should have stated this in the
original post.

No, I'm definately not following schoolsvhunger.

I was aware of this behaviour (which makes sense), which is why I'm
puzzled that I don't get the follow request for schoolsvhunger. Seems
like this should be a straightforward thing to do.

On Feb 24, 1:33 pm, Jonathan Strauss jonat...@awe.sm wrote:
 Are you already following the secondTwitteraccount (i.e.
 schoolsvhunger) from your logged inTwitteruser? The suggestions will
 only show you up to 2Twitterusers you don't currently follow, which
 is why you have the option to specify up to 7 (1 via and up to 6
 related).

 -jonathan

 On Feb 22, 8:28 am, KennyB kenny...@gmail.com wrote:

  Hi,

  When I share my page with the related url param as
  'schoolsserve:Schools Fight Hunger', I am asked if I want to follow
  schoolsserve after sharing the suggested text.

  When I only change the related url param to be 'schoolsvhunger:Schools
  Fight Hunger' (no other changes), I am not asked if I want to follow
  schoolsvhunger after sharing the suggested text.

  The code I'm using is below; shown with the 'non-working'
  schoolsvhunger related param in play.

  Any ideas why this wouldn't work? Would it be some kind of privacy
  setting that schoolsvhunger has set?

  div id=custom-tweet-button class=socialicon
          ?php
                  $text = JText::_('SCHOOL PROFILE HEADERTWITTERTEXT');
                  $related = 'schoolsvhunger:Schools Fight Hunger';
  //              $related = 'schoolsserve:Schools Fight Hunger';
                  $twitterurl = 
  'http://twitter.com/share?url='.rawurlencode($url).
                          'related='.rawurlencode($related).
                          'text='.rawurlencode($text);
          ?
          a href=?php echo $twitterurl; ? target=_blank
  rel=nofollowTweet/a
  /div

  The a tag generated by the above is:

  a rel=nofollow target=_blank href=http://twitter.com/share?
  url=http%3A%2F%2Fdev.schoolsfighthunger.org%2Fschool%2F2000463-
  albertville-elementary.htmlamp;related=schoolsvhunger%3ASchools
  %20Fight%20Hungeramp;text=My%20school%20joined%20%40schoolsvhunger
  %20to%20%23fighthunger%21%20Make%20sure%20your%20school%20is%20taking
  %20part-join%20the%20fight%21Tweet/a

  Any help greatly appreciated.

  Thanks
  Kenn

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: custom share button and following - works for one twitter user but not for another

2011-02-23 Thread Jonathan Strauss
Are you already following the second Twitter account (i.e.
schoolsvhunger) from your logged in Twitter user? The suggestions will
only show you up to 2 Twitter users you don't currently follow, which
is why you have the option to specify up to 7 (1 via and up to 6
related).

-jonathan

On Feb 22, 8:28 am, KennyB kenny...@gmail.com wrote:
 Hi,

 When I share my page with the related url param as
 'schoolsserve:Schools Fight Hunger', I am asked if I want to follow
 schoolsserve after sharing the suggested text.

 When I only change the related url param to be 'schoolsvhunger:Schools
 Fight Hunger' (no other changes), I am not asked if I want to follow
 schoolsvhunger after sharing the suggested text.

 The code I'm using is below; shown with the 'non-working'
 schoolsvhunger related param in play.

 Any ideas why this wouldn't work? Would it be some kind of privacy
 setting that schoolsvhunger has set?

 div id=custom-tweet-button class=socialicon
         ?php
                 $text = JText::_('SCHOOL PROFILE HEADER TWITTER TEXT');
                 $related = 'schoolsvhunger:Schools Fight Hunger';
 //              $related = 'schoolsserve:Schools Fight Hunger';
                 $twitterurl = 
 'http://twitter.com/share?url='.rawurlencode($url).
                         'related='.rawurlencode($related).
                         'text='.rawurlencode($text);
         ?
         a href=?php echo $twitterurl; ? target=_blank
 rel=nofollowTweet/a
 /div

 The a tag generated by the above is:

 a rel=nofollow target=_blank href=http://twitter.com/share?
 url=http%3A%2F%2Fdev.schoolsfighthunger.org%2Fschool%2F2000463-
 albertville-elementary.htmlamp;related=schoolsvhunger%3ASchools
 %20Fight%20Hungeramp;text=My%20school%20joined%20%40schoolsvhunger
 %20to%20%23fighthunger%21%20Make%20sure%20your%20school%20is%20taking
 %20part-join%20the%20fight%21Tweet/a

 Any help greatly appreciated.

 Thanks
 Kenn

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk