Forum QuickConnect Facebook getting their name problem

Discussion and help relating to PlayerIO's QuickConnect feature, including Facebook Connect and Kongregate Connect.

Facebook getting their name problem

Postby jackass026 » February 24th, 2015, 12:40 pm

How i can get their fb name and fb id to show up on my game?
How? i want to get their fb but it doesnt show up .. i tried fbname = root.loaderInfo.parameters.fbname
but it doesnt work and it doesnt have the parameter or a variable of fbname? :roll: :roll: :roll:
jackass026
 
Posts: 6
Joined: February 21st, 2015, 12:17 pm

Re: Facebook getting their name problem

Postby Jovanovic984 » February 24th, 2015, 2:17 pm

I use this:

Code: Select all
FB.init({access_token:access_token, app_id:app_id, debug:true});
         
FB.api("/me", {fields:"name,first_name"}, function (response:*):void {
      fulln=(response.name);
      ime=(response.first_name);
      someTextfield.text="Welcome, "+ime+" !";
          });
Jovanovic984
 
Posts: 13
Joined: October 16th, 2013, 8:00 am

Re: Facebook getting their name problem

Postby jackass026 » February 25th, 2015, 4:51 am

Where should i put that? and where can i get facebook api?
jackass026
 
Posts: 6
Joined: February 21st, 2015, 12:17 pm

Re: Facebook getting their name problem

Postby Jovanovic984 » February 25th, 2015, 8:16 am

Put that in the function handleConnect. Follow Seedlings example,it's all there in SDK.

And about graph api:
https://gamesnet.yahoo.net/documentatio ... shgraphapi
https://developers.facebook.com/docs/graph-api
Jovanovic984
 
Posts: 13
Joined: October 16th, 2013, 8:00 am

Re: Facebook getting their name problem

Postby [GD]AlaaNasro » March 10th, 2015, 6:23 pm

No need for new code, you have to learn some HTML ( Facebook SDK's ) to load the facebook name!
[GD]AlaaNasro
 
Posts: 46
Joined: March 10th, 2015, 6:11 pm

Re: Facebook getting their name problem

Postby KotaMills » March 10th, 2015, 11:18 pm

Alaa are u dumb? player.io provides everything needed :P
Coming Soon Shark Chase! :D
KotaMills
 
Posts: 30
Joined: December 20th, 2014, 4:22 am


Return to QuickConnect