Do you know how I can authenticate an app for Facebook in PHP?
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.
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.
精彩评论