Author Topic: How to make a Facebook username caller script for facebook?  (Read 7005 times)

Tayab

  • Full Member
  • ***
  • Posts: 149
How to make a Facebook username caller script for facebook?
« on: October 11, 2012, 02:46:59 PM »
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?
« Last Edit: October 11, 2012, 08:09:26 PM by Tayab »

Savera

  • Full Member
  • ***
  • Posts: 159
Re: How to make a Facebook username caller script for facebook?
« Reply #1 on: October 11, 2012, 08:14:32 PM »
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

  • Full Member
  • ***
  • Posts: 149
Re: How to make a Facebook username caller script for facebook?
« Reply #2 on: October 12, 2012, 02:02:53 AM »
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

  • Full Member
  • ***
  • Posts: 159
Re: How to make a Facebook username caller script for facebook?
« Reply #3 on: October 12, 2012, 04:52:36 AM »
Oh , you mean simple saying user's name who is viewing the page ?

Tayab

  • Full Member
  • ***
  • Posts: 149
Re: How to make a Facebook username caller script for facebook?
« Reply #4 on: October 12, 2012, 05:33:18 PM »
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: [Select]
<p class"fbUserID()"></p>

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

Code: [Select]
<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>



How could it be made?

 

X

Do you know?

By participating in our community you can get free top level domain as well learn about Search Engine Optimization, Server management and more..
Join Now!
anything