简体   繁体   中英

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM