views:

1614

answers:

3

For an example, there is a set_user function

$facebook->set_user

but I typed in set_user at the facebook developer wiki search box, it returns 'There is no page titled "set_user"'

http://wiki.developers.facebook.com/index.php/Special:Search?search=set_user&go=Go

Where can I find the list of the functions and properties for the facebook object user object etc?

Many thanks.

A: 

Download the Official Facebook PHP Client Library package from http://wiki.developers.facebook.com/index.php/PHP and if you open facebookapi_php5_restlib.php you can see the methods and properties.

Priidik Vaikla
Unreality
The best documentation is the code. It never gets outdated.
Priidik Vaikla
+1  A: 

The Developers wiki basically only documents the raw API. The official PHP library is a thin(-nish) wrapper around this API, and includes some minimal phpdoc documentation in its comments.

If you want to generate documentation for the library, you need a copy of phpDocumentor (and the CLI version of PHP installed). Then you can run:

./phpdoc -t /path/to/write/documentation -o HTML:default:default -d /path/to/facebook-platform/php/

or in Windows:

php.exe "C:\Path\To\phpdoc" -t C:\Path\For\Documentation -o HTML:default:default -d C:\Path\To\facebook-platform\php

to generate some local HTML documentation. But like I say, it's pretty minimal, and there's not much benefit over just reading the documentation inline with the code.

chrismear
thanks a lot...
Unreality
+1  A: 

I may have found what you are looking for. Check http://wiki.developers.facebook.com/index.php/JS_API_T_FB.Facebook

If you scroll down, you can view the whole namespace.

It took a lot of digging to find this.

many thanks. This link will be very helpful when I need to write facebook connect apps
Unreality