Mangle Rules Help

hi geeks

i need help to establish a script for facebook for my customers so that give special bandwidth for facebook that can not be exceeded no matter what

for example :

if i put 10 Mbps for facebook and only one customer is using he can use the 10Mbps
if 10 customers are using facebook the 10Mbps

Mean even if 100 customers are using facebook,dedicated bandwidth for facebook will stay 10Mbps

You have to mark packets and use a queue. The queue can limit the aggregate speed of these marked packets. The queue won’t concern itself with the number of users, rather it’s just 10mbps for all facebook connections.

To mark the packets, you’ll have to use a firewall mangle rule and address list. Facebook IPs shall go in the address list. Packets in and out ether1-gateway to or from IPs in the address list should be given a mark so they’ll go through the facebook queue.

Because facebook may change it’s IPs, you’d also need a script to maintain the address-list. The script would have to resolve the various facebook hostnames and update the address list. The daunting part will be finding IPs to all facebooks subdomains for content delivery. And these subdomains can change at Facebook’s discretion. The below link is a big list of subdomains facebook uses. This is NOT an official list from facebook.
http://vkian.com/facebook/list-of-subdomains-of-facebook-com-interesting-things-behind-facebook.html

Thank u sir for the detailed explanation.can u give me sample example so that i can change it in a way it suits me and start learning it