How to Get the Fanpage URL

Two type of Fanpage URL:

1. Type 1. Valid Fanpage URL

2. Type 2. Valid Fanpage URL