FriendsOfSymfony / FOSFacebookBundle

NOT MAINTAINED - see https://github.com/hwi/HWIOAuthBundle
322 stars 140 forks source link

access as an app vs access as a user #240

Open iamkoby opened 11 years ago

iamkoby commented 11 years ago

sometimes i want to run $facebook->api() as the connected user and sometime as the application (user access token vs application access token).

how do i tell the facebook service to use the appropriate access token?

thanks

jhkchan commented 11 years ago

This is not related to this bundle, but in short you can call $facebook->setAccessToken($token) to switch.