If some one is saying i commited a burglary with them can i be conevicted on just hearsay?
Eyewitness testimony is not "just hearsay."
Since they saw you, it's not hearsay. Since you're facing many years in prison, retain a lawyer.
Yes, IF the co-defendant said you burglarized the house with him, and there is proof that a burglary occurred. See website for info on retaining the right attorney: http://www.lawrencelewispc.com/pages.php?go=pinfo&PID=38
Good luck