Maistangw replied

495 weeks ago




Facebook User Id Javascript Sdk > http://urlin.us/1jajd

























































37d6e8c88a
shareimprove this answer answered Mar 30 '11 at 19:52 catgofire 54545 Hey, thanks for you response! I got this working the way I needed it - check out my answer below. Join them; it only takes a minute: Sign up Join the Stack Overflow community to: Ask programming questions Answer and help your peers Get recognized for your expertise Extracting user id from Facebook Javascript SDK session object up vote 2 down vote favorite 3 I am using Facebook's Javascript SDK "FB.ui" to pull up an OAuth dialog. Summary Facebook SDK for JavaScript allows you to integrate many Facebook features in your website. You should replace XXXXXX with the actual ID of your app. . xfbml : This Boolean parameter indicates whether markup of social plugins is parsed (and rendered) or not. To get around this, you call FB.getLoginStatus with the second parameter set to true to force a roundtrip to Facebook - effectively refreshing the cache of the response object. shareimprove this answer answered Mar 18 '11 at 5:12 Chirayu 1,00831740 add a comment up vote 1 down vote To get the userID: FB.getLoginStatus(function(response) { alert(response.authResponse.userID); }); shareimprove this answer edited Feb 18 '14 at 22:08 TheSharpieOne 15.2k23555 answered Jan 25 '12 at 12:09 Jamie Kitson 1,72621633 add a comment up vote 0 down vote Check your response.

Still thanks alot saved me from a big trouble. I don't think FB.ui can currently be used to get the oauth dialog, unless you want to use a popup, which most everyone has blocked nowadays. . I have a slight issue Im using this mostly like it is here, however, its not working on firefox/safari on mobile. of course the javascript sdk only works client side, so thats not really isomorphic. Related Documentation Improve user experience with automatic login Parameters Name Type Required Description cb Function yes The callback function. Subscribe to our newsletter below. FB.init({ appId : '***************', status : true, cookie : true, xfbml : true }); FB.getLoginStatus(function(response) { if (response.session) { //do something } else { FB.ui({ method: 'oauth', display: 'page', scope: 'email', perms: 'email' }, function(response) { alert(response.session.uid); //returns underfined }); } }); facebook facebook-graph-api facebook-javascript-sdk facebook-java-api shareimprove this question asked Mar 18 '11 at 4:18 Yev 79641734 add a comment 4 Answers 4 active oldest votes up vote 1 down vote When you login from login button of facebook then it stores cookies in your system that contains your access token that is also unique.

kendra lust myfriendshotmomBest Friends JanoskiansKatrina Kaif Hot Booba midlu kissing boy Scene target=how to change your password on the new facebookShaderlight Crack Full Versioncheat eternal saga facebookThe Hiss - Chocolate Hearts.zipMybrosgf sabinaSaitheesai` Khuan Ma Tawng Pi Meh Jah Baa TelScrap Set - Baby Girl PNG and JPG Files
Please log in to post a reply.