I'd like to use some APIs, foursquare for example, in my Symfony2 project. The problem is that instead of the 2 great FOS bundles concerning Twitter/Facebook, I'm not finding anything on OAuth (I tried the EtcPasswdOAuthBundle but did not manage to make it work because of a missing file I guess).
Moreover, I'd like to make it work with FOSUserBundle.
So, if you could give me some help, I do not understand how to manage OAuth with Symfony ...
Thanks !
Two years later, but for all who might step over this link while searching for a solution:
The new OAuth2 package for client integration in Symfony2 is the HWIOAuthBundle , the KNPLabs is no longer maintained. - the server pendant is the FOSOAuthServerBundle .
Guzzle is a really good client to do http request with objects.
You can add guzzle-oauth2-plugin to handle OAuth easily. There is a tutorial if you need help.
Facebook正在使用OAuth2,我猜你可以轻松制作一个基于FacebookBundle的Foursquare套装。
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.