简体   繁体   中英

how to create an web api for login /signup with google and facebook

Does anyone know that how to create a web-services to login and register with facebook and google ?

-thanks in advance

If you are using codeigniter this is where you will find all the info you need. Codeigniter Facebook . You will also need Facebook PHP SDK wich can be found here Facebook SDK , and you also have to create an app in you facebook developer's account Facebook developers . Next you have to place in your libraries folder folder the SDK from facebook and the library mentioned above and in config folder the facebook config where you will have to enter your app's id and secret received from Facebook developers .Also don't forget to

require_once FCPATH.'/application/libraries/Facebook/autoload.php';

in the Facebook library.Then you should be able to use it just like in the example from Codeigniter Facebook .

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