problem with post in API twitter using PHP library
Im trying to use the following PHP to add a favorite to my account:
$favorite = $connection->post('favorites/create/'.$id);
where $id
is the status id but fa开发者_运维问答vorite don't return nothing also I'm trying with statuses/retweet/ but is the same
Also when you are debugging, use print_r($favorite); to help you. Saved me with my problem today actually :-) But Andre is correct, remove the fullstop.
Replace the period with a comma, right before $id:
$favorite = $connection->get('favorites/create',$id);
精彩评论