Wordpress - Loop through users and return IDs of users who are facebook friends

Cancelled

Job Description

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.

E.g.

Wordpress User ID -> Facebook User ID -> List of Friends -> Facebook User IDs -> Wordpress User IDs


If PHP is not possible, javascript solutions are possible with Ajax