[twitter-dev] Create a favorite

2010-09-05 Thread Dan
Im very much a newbie to PHP and the Twitter API. Im trying to create a form button to set a tweet as a favorite. I have OAuth working to post status updates and i've tried to amend the status update code to set a tweet to be a favorite. Wonder if anyone could help me: $qtweet = A Twitter ID

Re: [twitter-dev] Create a favorite

2010-09-05 Thread CWorster
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