I am using PHP to work on Facebook, and I want to get an access_token to get User Data Permission for items like
- user_actions.music
- user_activities
- user_events
- user_location
- etc.
I know this can be done by using Graph API Explorer in Facebook developers. Can you show me how to do this in PHP? Thanks!
After
include‘ing the Facebook SDK for PHP, simply call$facebook->getLoginUrlwith appropriate parameters.