你知道我如何在PHP中验证Facebook的应用程序吗?

问题描述:

I'm trying to to get tokens so something like that so that an app will be able to search a user in Facebook.

I've tried http://github.com/facebook/php-sdk but it is either for authenticating a user or it is not working.

For example this one is for authenticating a user to the app http://github.com/facebook/php-sdk/blob/master/examples/example.php but I want to authenticate my app to facebook.

This one give error http://github.com/facebook/php-sdk/blob/master/tests/tests.php Fatal error: Class 'PHPUnit_Framework_TestCase' not found in...

And I do not know my ap's tokens. Also I do not know whether those tokes are used for once or they can be used multiple times.

我正在努力获取令牌,以便应用程序能够搜索用户 Facebook。 p>

我试过 http://github.com / facebook / php-sdk 但它要么是用于验证用户,要么是无法正常工作。 p>

例如,这个用于向用户验证用户 http://github.com/facebook/php-sdk/blob /master/examples/example.php 但我想将我的应用验证到Facebook。 p>

这一个给出错误 http://github.com/facebook/php-sdk/blob/master/tests/tests.php Fatal错误:在'...找不到类'PHPUnit_Framework_TestCase' p>

我不知道我的ap's令牌。 此外,我不知道这些tokes是否曾被使用过一次,或者它们可以多次使用。 p> div>

You can only access the email addresses (or proxy email addresses) of the users that gave your app that permission. There is no way to write a facebook application that accesses email addresses (or most any data) of arbitrary users.