Facebook Authentication API

if I want to authenticate the user via facebook, I need to get the permission "offline_access" for my application.

The user will need to link his application profile with his facebook account. Therefore, if he had already registered with facebook, he did not have to authenticate again in my application.

I am using PHP-SDK with Zend.

Thank.

- lony

+3
source share
2 answers

There is a method in the facebook php-sdk class - getLoginUrl.

You can pass an array to it, change the parameters of the array based on the necessary permissions.

getLoginUrl(array(
                    'req_perms' => 'publish_stream,offline_access'));

A detailed list of permissions can be found here -

http://developers.facebook.com/docs/reference/api/user

+6

offline_access, , . , , .

+2

Source: https://habr.com/ru/post/1779929/


All Articles