some changes in getPermissions function and request 'user_friends' permission when login to Facebook