Set value to Field collection item link field
I managed to solve it by using an array in setValue.

$field_collection_item2-&gt;field_url-&gt;setValue(array('uri'=&gt;$base_url . '/form/email-project-completion-survey', 'title' =&gt; 'Survey'));