Designing and Development > Programming

How to make a Facebook username caller script for facebook?

(1/1)

Tayab:
So I made a facebook page and added a welcome tab to it, and want to make a script like when someone (Facebook Member) views it; greets him/her by the facebook name. I've seen many of the tabs like that, how could that be happen?

Savera:
Well, that is done from some kind of library which reads username from FB database and then converts it to voice and sent to user through PHP .

Using search I found two solution..

Easy one is use google API :
http://www.masnun.me/2009/12/14/googles-text-to-speech-api-a-php-wrapper-class.html

The other one is hard one but you are not using any external service but you need to have some knowledge of Linux also along with PHP
Read details here :
http://blog.makezine.com/2008/08/20/texttospeech-in-php/

Those are actually interesting things, I may use it in future for my stuff.

Tayab:
That's actually something different. I am giving you a demo page of what I am interested in.

URL: http://www.facebook.com/neverleavemeahalone/app_7146470109

At the 12th line of the page it says the name of the user viewing the page. That's what I want, could that be happen?

Savera:
Oh , you mean simple saying user's name who is viewing the page ?

Tayab:
Yeah, how could it be scripted? A friend of mine (the owner of that page) says Facebook already has the script of it, only thing we have to do is add it to a paragraph something like.


--- Code: ---<p class"fbUserID()"></p>

--- End code ---

But after inspecting it's elements it comes up like.


--- Code: ---<span fb_protected="true" class="fb_protected_wrapper"><a href="http://www.facebook.com/tayab.soomro.96" onclick="(new Image()).src=&quot;\/ajax\/ct.php?app_id=7146470109&amp;action_type=3&amp;position=16&amp;hash=AcYFZJ4NPqaoMuYW&amp;r=&quot;+Math.random();return true;">Tayab Soomro</a></span>

--- End code ---



How could it be made?

Navigation

[0] Message Index

Go to full version