Seemingly it supposed to be https://github.com/facebook/php-sdk/
. However, I am suspicious either it so because getLogin开发者_StackOverflow社区Url
method generates not the type of URL that is described in http://developers.facebook.com/docs/authentication/
.
So I was wondering which of these is outdated?
The PHP SDK that you linked is up to date. It is a client for the various Facebook APIs, including the Graph API, the "old" REST API, and others. Right now, getLoginUrl() does generate a URL that has been used for longer than the OAuth documentation has existed, but the end result will be the same for you. If you do have a problem with that login URL for some reason, you're free to implement authentication any way you like by replacing or extending the existing SDK logic.
Remember, APIs and SDKs are not the same thing. The PHP SDK is just one API client. Everything in the official FB docs should be considered up-to-date, as they've all been revamped this year.
OAuth based authentication and Graph Api for data are the latest ones.
http://developers.facebook.com/docs/authentication/
see this also: http://developers.facebook.com/docs/reference/rest/
精彩评论