auto sync after changing ROM I had stock rom for my HTC Wildfire S with HTC Sense and facebook. I had joined contacts - Google account and Facebook friends.
Now I flashed to Cyanogen mod 7 and they are not synchronised. But I noticed, that every contact (which was synced before) has Note with hash like: &lt;HTCData&gt;&lt;Facebook&gt;id:xxxxxxx/friendof:xxxxxxx&lt;/Facebook&gt;&lt;/HTCData&gt;

Is there any way to put it back together automatically?

Thank you
CyanogenMod does not use the &lt;HTCData&gt;&lt;Facebook&gt;id:xxxxxxx/friendof:xxxxxxx&lt;/Facebook&gt;&lt;/HTCData&gt; tag as HTC Sense does, so this can just be deleted.

The Facebook contact sync is setup inside the Facebook for Android app (Settings -> Sync friends with Contacts). This should automatically add Facebook pictures and contact info to Contacts.

However, I have experienced that the contact pictures do not always sync after a reboot, until I have opened the Facebook app and scrolled through my friend list (then the images are loaded). Therefore, I installed another app called SyncMyPix for the picture synchronization.