[Facebook for Websites] - Update 1-29-2016

Post your completed addons to share with the community

Post » Fri Apr 12, 2013 2:23 am

@xanxion I'm curious, you do run the fetch user info action upon login? It's one of those things I detached from the login process so people could run it at anytime(so you can check before permission specific events as well as after login)
B
69
S
21
G
15
Posts: 701
Reputation: 15,629

Post » Fri Apr 12, 2013 12:18 pm

Hey lanceal, is there a way to get Friend's avatars from facebook?
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,646

Post » Fri Apr 12, 2013 12:27 pm

There a plugin, there are extra APIs didn't include your list

http://www.scirra.com/forum/plugin-small-mod-to-facebook-plugin_topic52653.html
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,646

Post » Fri Apr 12, 2013 12:32 pm

Would you add 2 expressions?

   -User email address
   -User Birthday
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,646

Post » Fri Apr 12, 2013 1:29 pm

@lanceal
You know what, i really think i made an error. Because it seems to work now! This is simply awesome work lanceal!
So many features, and good stuff!
B
34
S
8
G
7
Posts: 498
Reputation: 7,753

Post » Fri Apr 12, 2013 2:32 pm

@lanceal

By the way, any chance you could make a capx showing how to create something like this: https://www.scirra.com/tutorials/445/facebook-how-to-get-a-list-of-friends/page-1

With your plugin. Im sure its already build in. But i dont know how to set it up.

Anyway, thanks for the great work you've done.
This place wouldnt be the same withought you talented guys :)
B
34
S
8
G
7
Posts: 498
Reputation: 7,753

Post » Fri Apr 12, 2013 3:13 pm

@xanxion

A list of friends is doable right now using the following:
Update Status - Update the user login status. Fetch the friend list, then cycle through the listusing the game friend array length expression. Call the fetch friend info action for each number in the array length. Then just do as you will to save the info for each player. I don't have the functionality atm to fetch the entire friends list but that shouldn't be too difficult to add.

ACTIONS:
Fetch Game Friend List - Fetch a list of all users friends that play this app.
Fetch game friend info by array ranking number - Fetch game friend info by array ranking number.


CONDITIONS:
On Game Friends Loaded - Triggered once all game friends have been loaded.


EXPRESSIONS:
Current friend score - Current selected game friends score.
Current friend name - Current selected game friends name.
Current friend ID - Current selected game friends ID.
Current friend rank - Current selected game friends rank.
Game Friend Array length - Current selected game friends array length.
B
69
S
21
G
15
Posts: 701
Reputation: 15,629

Post » Sat Apr 13, 2013 5:53 am

I'm making a game with your plugin, sometimes it's complicated compared to Scirra's facebook plugin...

Like im making similiar "Prompt to share this app" but your plugin, i had no idea.
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,646

Post » Sat Apr 13, 2013 8:50 am

API Error Code: 100
API Error Description: Invalid parameter
Error Message: null does not resolve to a valid user ID
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,646

Post » Sat Apr 13, 2013 1:14 pm

@Joannesalfa,

Yes it is more difficult to use. Facebook api has a ton of available options that were not put into the default plugin I'm assuming to avoid the complexities. The one issue I'm guessing you're having in the above is permissions. I did not hard code any of the permissions into the file because of the sheer number of permissions. So to fix your problem go to the following Permissions. Make sure to request the permissions that you need.

B
69
S
21
G
15
Posts: 701
Reputation: 15,629

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest