Could someone help me find the documentation for the PHP Facebook SDK? I can’t understand where I can see which methods I can invoke on e.g. the Facebook application instance $facebook.
Could someone help me find the documentation for the PHP Facebook SDK? I can’t
Share
Facebook tends to document the API, not the SDK. So you need to look at the Graph API documentation. The PHP SDK used to have many, many more functions in it, and more documentation. The latest iteration is considerably smaller, thus not documented well. Many times Facebook puts PHP examples in the documentation for the Graph API. So if you lookup documentation for some functionality, you may find PHP example. For example, authentication.
https://developers.facebook.com/docs/authentication/
I’ve actually migrated a lot of my functionality to javascript. The javascript SDK is much better documented. Also, I think it creates a much better user experience since you don’t need to use URL redirects to accomplish things. The javascript SDK also helped me determine what is possible with the PHP SDK.
I’ve been developing Facebook apps for about 5 years now, using PHP. There is no magical place for documentation you haven’t found.