The leader of the Palestinian militant group Hamas met Monday with Lebanese President Michel Suleiman and Premier Fouad Seniora.
Syria-based Khaled Mashaal said he "told both Lebanese officials that the internal Palestinian situation was good and affirmed that Hamas supported Lebanese reconciliation."
He added that his movement considered all Lebanese parties equal and that Hamas was against a permanent Palestinian settlement in Lebanon, but also against Palestinians being displaced.
"The issue of weapons inside and outside Palestinian refugee camps can only be solved through dialogue between Palestinians and Lebanese people," he said, adding that Hamas will follow up this matter and will make efforts to resolve it.
It was the first known trip to Beirut by Mashaal since Israeli warplanes destroyed his faction's office in the Lebanese capital during the 2006 war with Hezbollah.
Mashaal's movements are generally kept secret because of assassination fears.
The Hamas leader was due to meet with Hezbollah chief Sheikh Hassan Nasrallah later Monday.
On and off clashes between Hamas and the other major Palestinian faction, Fatah, which increased the tension inside the Palestinian camps where some 367,000 refugees are living.
Security inside the camps is in the hands of Palestinian factions, but the Lebanese army maintains checkpoints at the entrance of each camp to monitor movements in and out of the shantytowns.

Shares fell 2.1 per cent Friday on the Seoul stock exchange on general recession fears. South Korea's won dropped against the dollar.
When the Spirit rover landed on Mars five years ago, no one expected it or its sister rover Opportunity to make it to their first birthdays, let alone their fifth.
Amelie Mauresmo fell victim to a leg injury after less than half an hour on court Friday to hand over a 4-0 victory which put French compatriot Marion Bartoli into the final of the Brisbane International.
Mumbai-based movie Slumdog Millionaire won five prizes Thursday night at the Critics Choice Awards, cementing its position as a surprise favourite just as the Oscar season moves into high gear.
After the Taipei Zoo received two giant pandas from China, another Taiwan zoo said Friday it is seeking to receive a pair of pandas from China.