REALLY NEED A TUTORIAL on Facebook functionality!

Okay, so I thought I had Facebook working, but I cannot get things to function correctly.  Can anyone post sample code to do the following, which should be a simple process, but the documentation seems quite confusing:

  1. Log user into Facebook

  2. Get user’s Facebook ID and profile pic

  3. Get list of friends (ID, profile pic) that have the app installed

  4. Get list of friends to invite to the game

I have properly configured my Facebook developer account and I thought I had everything working, but requests now don’t bring back anything.  This is the last step in getting my next app published so I really need some help here!

I see MANY comments around confusion on how to properly use the Facebook plugin, so anyone that can post sample code that accomplishes the above functionality would surely help many of our users!

Please help!!!

Can anyone help here?

Have you looked at Facebook app from our Samples?

Yes, but it doesn’t seem to address the friends list need.  Anyone have other examples?

I haven’t done this for a long time, but my impression was you now need express permission from Facebook to access things like friends lists. Have you been through that process to have your app’s permissions approved?

Yes, everything is set up on the Facebook developer portal.

Facebook works with API endpoints they call their “Graph API”. They have extensive documentation on using their API calls. In theory, you would do a “me/friends” facebook.request() call to get what you need.

However, Facebook over the years has changed the rules and some things require additional permissions. They also in an attempt to prevent spamming users with game requests, broken friends in to friends with your app and friends without it.  While in “testing” mode you should have access to everything, but once you’re ready to go live, you will have to get those activities approved by Facebook.

There are also facebook.showDialog() calls that can get these friend lists for you.

Rob

Can anyone help here?

Have you looked at Facebook app from our Samples?

Yes, but it doesn’t seem to address the friends list need.  Anyone have other examples?

I haven’t done this for a long time, but my impression was you now need express permission from Facebook to access things like friends lists. Have you been through that process to have your app’s permissions approved?

Yes, everything is set up on the Facebook developer portal.

Facebook works with API endpoints they call their “Graph API”. They have extensive documentation on using their API calls. In theory, you would do a “me/friends” facebook.request() call to get what you need.

However, Facebook over the years has changed the rules and some things require additional permissions. They also in an attempt to prevent spamming users with game requests, broken friends in to friends with your app and friends without it.  While in “testing” mode you should have access to everything, but once you’re ready to go live, you will have to get those activities approved by Facebook.

There are also facebook.showDialog() calls that can get these friend lists for you.

Rob