Hi,

change this line:
> $connection->post('favorites/create', array('id' => $qtweet));
into:
$connection->post('favorites/create/'.$qtweet);

>  $qtweet = $_REQUEST['fav'];
Make sure that $_REQUEST['fav'] is containing an existing ID. Check your Form:
> <input style="width: 346px;" name="fav" id="fav" ></textarea>
<input type="text" style="width: 346px;" name="fav" id="fav"
value="<?php echo $YOUR_ID; ?>" />

I would prefer an input type="hidden".

Hope it helps.

Christian

-- 
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?hl=en

Reply via email to