{
"error": {
"message": "Missing redirect_uri parameter.",
"type": "OAuthException",
"code": 191
}
}
1. Get an access_token with the user_birthday permission:
https://graph.facebook.com/oauth/authorize?client_id=130816363274
&redirect_uri=http://www.example.com&scope=user_birthday
&type=user_agent
2. Try to get the current user's birthday:
https://graph.facebook.com/me?
fields=birthday&access_token=RESULT_FROM_STEP_1
https://graph.facebook.com/oauth/authorize?client_id=130816363274
&redirect_uri=http://www.example.com&scope=user_birthday
&type=user_agent
Get an access_token with the user_likes permission:
https://graph.facebook.com/oauth/authorize?client_id=XXXXXXX&redirect_uri=http%3A%2F%2Fwww.example.com&scope=user_likes&type=user_agent
2. Try to query the current user's interests:
https://graph.facebook.com/me?
fields=interests&access_token=RESULT_FROM_STEP_1
{
"error": {
"message": "An active access token must be used to query information about the current user.",
"type": "OAuthException",
"code": 2500
}
}
$jfbcLibrary = JFBConnectFacebookLibrary::getInstance();
$fbUserId = $jfbcLibrary->getFbUserId();
$fields = array('interests');
$data = getUserProfile($fbUserId, $fields);
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.