Is there a line of code that I can use to display the number of fans of a certain facebook public profile page as text on another website?

You will be able to use PHP and the fopen command: code /code Using Chucks page for an example here! You'd then need to do some regular expressions on the result. The HTML around the fans bit on Chucks page looks like this: code ChuckTV Programme101,492 fans /code This will be in a similar format for any page, just with the variables changed.

You'll be able to get all of the variables from whichever page you're using, but if you use preg_match() or similar, and take whatever is in between the final as your number, then strip the 'fans' off the end - you have the number of fans! Point of note here - Facebook can be ridiculously slow to load up in this manner, and may possibly start rejecting connections - use at your own risk, and don't make this script critical to the page loading. Unfortunately thats just a fact of cross-site loading!

I would write you up some working code, feel free to tempt me with a nice large tip for that, but quite frankly - its 1am here and I absolutely hate regex :-D.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions