0 Favourites

Getting a list of Facebook friends

  • I intend to have an array of empty sprite boxes in my Facebook Game that will show images of the player's friends that he can invite to play the game.

    But, I'm stuck...

    Is there a way to get a list of Facebook friends belonging to the player?

    I have tried looking at the problem this way:

    1. I looked through the available Facebook actions, conditions, and expressions and realized there was no way to access the friends list. Also, I am not interested in the Score API output for now.

    2. I was hoping to use the AJAX plugin to send a Request URL to "https:/graph.facebook.com/APP_ID/friends". And then I realize I had no way to glean the Access Token.

    3. I looked through the js code for Facebook and realized I would have to make quite substantial changes.

    Is there a way to retrieve the friends list in another way?

    What is the current picture like for a solution to this problem in the next few patches for C2?

    Thanks,

    Gavin

  • I had posted a Facebook plugin recently that includes the user access token. I'm on my iPad so I can't offer a link to it at the moment. Go into the plugin section and scroll down I think I titled it facebook 2 or something. It's just an updated version of the standard.

  • ^ Here's lanceal's plugin

    scirra.com/forum/topic60962.html

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Thanks!

    This plugin works like a charm! At least there's no need to reinvent the wheel.

    I hope these features gets incorporated into C2 soon. LANCEAL should be working for Scirra.

    <img src="smileys/smiley1.gif" border="0" align="middle" />

  • just remember, those tokens expire around every two hours. So update the tokens before they expire if you expect people to be logged in longer then that.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)