[英]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. 我正在尝试获取令牌之类的东西,以便应用程序能够在Facebook中搜索用户。
I've tried http://github.com/facebook/php-sdk but it is either for authenticating a user or it is not working. 我已经尝试过http://github.com/facebook/php-sdk,但是它要么用于验证用户身份,要么不起作用。
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. 例如,这是用于对应用程序http://github.com/facebook/php-sdk/blob/master/examples/example.php的用户进行身份验证,但我想对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... 致命错误:找不到错误类“ PHPUnit_Framework_TestCase” ... http://github.com/facebook/php-sdk/blob/master/tests/tests.php
And I do not know my ap's tokens. 而且我不知道我的AP令牌。 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. 无法编写访问任意用户的电子邮件地址(或大多数数据)的facebook应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.