facebook graph api check if user is a member of a group using PHP
问题 i want to check if a user is a member of a group using facebook graph api... i have this: $group = file_get_contents("https://graph.facebook.com/177129325652421/members?access_token=XXXXXXXX"); $group = json_decode($group); $checkuser = $group->data; and check the user if is a member by using his facebook id and in_array() if(in_array($_GET["fid"],$checkuser)){ echo "yes"; } else { echo "no"; } can someone help me to correct this please... my code is not working... 回答1: Reference: https:/