I had exactly the same problem when I changed my fuel filter. I ended up messing the line and couldn't use it anymore. Here is what I did :
I went to a junkyard, asked for the last part of the fuel line (that goes into the fuel filter) along with a few inches piping, from any Toyota (it seems most of them are just the same), put that stuff into my new filter, cut the equivalent part on my line, and joined the two parts with a flex pipe and clamps. I know it is not as "beautiful" as original but it is very efficient, safe and so easy ! Just think that otherwise you would have to change the entire fuel line (until the tank) !!!
I went to a junkyard, asked for the last part of the fuel line (that goes into the fuel filter) along with a few inches piping, from any Toyota (it seems most of them are just the same), put that stuff into my new filter, cut the equivalent part on my line, and joined the two parts with a flex pipe and clamps. I know it is not as "beautiful" as original but it is very efficient, safe and so easy ! Just think that otherwise you would have to change the entire fuel line (until the tank) !!!