alzander wrote:
That will return true if the user has the permission.var hasPermission = jfbc.permissions.check('user_photos');
It will return false if:
a) the user isn't logged in using Facebook (or not logged in at all)
b) the user doesn't have that permission.
In either case of false, the user can click the button you created above to get the permission (and possibly log them in).
I hope that helps,
Alex
["installed","basic_info","user_photos"]$cookie = $_COOKIE['jfbconnect_permissions_granted'];
$cookie = json_decode($cookie);
if (!in_array("user_photos", $cookie)) {
Put link here
}
<a class="btn btn-large btn-primary" href="javascript:void(0)" onclick="jfbc.permissions.update_scope('user_photos'); jfbc.login.facebook();">Import Facebook Albums</a>
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
