How I can get the avatar of current user logged?
On documentation I only see playerId and alias (username)
https://docs.coronalabs.com/plugin/gameNetwork-google/request.html#load-local-player
How can get the user avatar url ??
Thanks
How I can get the avatar of current user logged?
On documentation I only see playerId and alias (username)
https://docs.coronalabs.com/plugin/gameNetwork-google/request.html#load-local-player
How can get the user avatar url ??
Thanks
Hi @masterviana,
At this time I don’t think it has been exposed in our plugin, but can you loop through the “event.data” table of the event that is sent to your listener function and check what’s inside?
[lua]
local function requestCallback( event )
if ( event.type == “loadLocalPlayer” ) then
for k,v in pairs( event.data ) do
print( k,v )
end
end
end
gameNetwork.request( “loadLocalPlayer”, { listener=requestCallback } )
[/lua]
Brent
Hi @masterviana,
At this time I don’t think it has been exposed in our plugin, but can you loop through the “event.data” table of the event that is sent to your listener function and check what’s inside?
[lua]
local function requestCallback( event )
if ( event.type == “loadLocalPlayer” ) then
for k,v in pairs( event.data ) do
print( k,v )
end
end
end
gameNetwork.request( “loadLocalPlayer”, { listener=requestCallback } )
[/lua]
Brent
Any more info about this?
In our games we offer the user custom login or facebook login.
On the leaderboards, we show he users profile picture if he log in with facebook.
We are thinking about offering the login with Google Plus (google game services).
Is there a way to get their picture/avatar from G+ so we could show them in the leaderboards?
Any more info about this?
In our games we offer the user custom login or facebook login.
On the leaderboards, we show he users profile picture if he log in with facebook.
We are thinking about offering the login with Google Plus (google game services).
Is there a way to get their picture/avatar from G+ so we could show them in the leaderboards?