Wordpress - Loop through users and return IDs of users who are facebook friends
I have a Wordpress sites with Facebook integration.
Each user has a facebook ID: e.g. 500133330
This is stored as a user_meta value. I need PHP code that will return a list of the friends who are also using the app, and their user ID number.
Wordpress User ID -> Facebook User ID -> List of Friends -> Facebook User IDs -> Wordpress User IDs