Getting a list of Facebook friends

Get help using Construct 2

Post » Fri Dec 28, 2012 4:51 pm

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
=========================================
If you are on Linkedin, join other C2 professionals and network on the Scirra Construct 2 Developer Group at https://www.linkedin.com/groups?home=&gid=6732005
B
47
S
10
G
6
Posts: 193
Reputation: 7,604

Post » Fri Dec 28, 2012 6:13 pm

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.
B
68
S
21
G
15
Posts: 701
Reputation: 15,604

Post » Fri Dec 28, 2012 6:19 pm

^ Here's lanceal's plugin

http://www.scirra.com/forum/topic60962.html
B
49
S
14
G
3
Posts: 540
Reputation: 5,611

Post » Sat Dec 29, 2012 1:20 am

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.

=========================================
If you are on Linkedin, join other C2 professionals and network on the Scirra Construct 2 Developer Group at https://www.linkedin.com/groups?home=&gid=6732005
B
47
S
10
G
6
Posts: 193
Reputation: 7,604

Post » Sat Dec 29, 2012 3:52 am

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.
B
68
S
21
G
15
Posts: 701
Reputation: 15,604


Return to How do I....?

Who is online

Users browsing this forum: anty21ro, dieblume86, Kagubro and 2 guests