temple des black shadow Index du Forum
temple des black shadow Index du ForumFAQRechercherS’enregistrerConnexion

Facebook Getuser After Logout

 
Poster un nouveau sujet   Répondre au sujet    temple des black shadow Index du Forum -> temple des black shadow / partie publique -> Le Réglement des Black Shadow
Sujet précédent :: Sujet suivant  
Auteur Message
nealreg


Hors ligne

Inscrit le: 13 Avr 2016
Messages: 105
Localisation: Paris

MessagePosté le: Mar 9 Jan - 18:30 (2018)    Sujet du message: Facebook Getuser After Logout Répondre en citant




Facebook Getuser After Logout
> DOWNLOAD










Here's my code: ' ', 'secret' => ' ', 'cookie' => true, )); $user = $facebook->getUser(); if ($user) { try { $userprofile = $facebook->api('/me'); } catch (FacebookApiException $e) { errorlog($e); $user = null; } } ?> window.fbAsyncInit = function() { FB.init({ appId : ' ', status : true, cookie : true, xfbml : true }); // Additional initialization code such as adding Event Listeners goes here $('#btn-enter').click(function(){ login(); }); }; (function(d){ var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0]; if (d.getElementById(id)) {return;} js = d.createElement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/enUS/all.js"; ref.parentNode.insertBefore(js, ref); }(document)); function login() { FB.login(function(response) { if (response.authResponse) { // connected } else { // cancelled } //}); }, {scope: 'readfriendlists,friendsphotos,publishstream'}); } Enter Is there a better way to do this ? What works for me is: function login() { FB.login(function(response) { if (response.authResponse) { top.location.href=' } else { } //}); }, {scope: 'readfriendlists,friendsphotos,publishstream'}); } But this causes the entire page to refresh and is not 'elegant' per se. Stack Overflow Questions Jobs Developer Jobs Directory Salary Calculator Help Mobile Stack Overflow Business Talent Ads Enterprise Company About Press Work Here Legal Privacy Policy Contact Us Stack Exchange Network Technology Life / Arts Culture / Recreation Science Other Stack Overflow Server Fault Super User Web Applications Ask Ubuntu Webmasters Game Development TeX - LaTeX Software Engineering Unix & Linux Ask Different (Apple) WordPress Development Geographic Information Systems Electrical Engineering Android Enthusiasts Information Security Database Administrators Drupal Answers SharePoint User Experience Mathematica Salesforce ExpressionEngine Answers Stack Overflow em Portugus Blender Network Engineering Cryptography Code Review Magento Software Recommendations Signal Processing Emacs Raspberry Pi Stack Overflow Programming Puzzles & Code Golf Stack Overflow en espaol Ethereum Data Science Arduino Bitcoin more (26) Photography Science Fiction & Fantasy Graphic Design Movies & TV Music: Practice & Theory Worldbuilding Seasoned Advice (cooking) Home Improvement Personal Finance & Money Academia Law more (16) English Language & Usage Skeptics Mi Yodeya (Judaism) Travel Christianity English Language Learners Japanese Language Arqade (gaming) Bicycles Role-playing Games Anime & Manga Puzzling Motor Vehicle Maintenance & Repair more (32) MathOverflow Mathematics Cross Validated (stats) Theoretical Computer Science Physics Chemistry Biology Computer Science Philosophy more (10) Meta Stack Exchange Stack Apps API Data Area 51 Blog Facebook Twitter LinkedIn site design / logo 2018 Stack Exchange Inc; user contributions licensed under cc by-sa 3.0 with attribution required. After that user2 haven't any problems. php javascript facebook login permissions shareimprove this question asked Nov 23 '12 at 18:13 user1848205 113 If you want to react server-side (output different content) to the client-side login then of course a reload is necessary. Please try again.BirthdayMonthJanFebMarAprMayJunJulAugSepOctNovDecDay12345678910111213141516171819202122232425262728293031Year201820172016201520142013201220112010200920082007200620052004200320022001200019991998199719961995199419931992199119901989198819871986198519841983198219811980197919781977197619751974197319721971197019691968196719661965196419631962196119601959195819571956195519541953195219511950194919481947194619451944194319421941194019391938193719361935193419331932193119301929192819271926192519241923192219211920191919181917191619151914191319121911191019091908190719061905Why do I need to provide my birthday?FemaleMaleBy clicking Create Account, you agree to our Terms and that you have read our Data Policy, including our Cookie Use. The JavaScript SDK doesn't appear to check if the cookie is still valid (if it already exists). shareimprove this answer answered Jun 1 '12 at 16:08 Niraj Shah 10.4k11845 add a comment Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Here an example: $logoutUrl = $facebook->getLogoutUrl(array("next" => " In the page4logout you can instance the facebook object and execute the following: $facebook->destroySession(); After that you can do a redirection. By clicking or navigating the site, you agree to allow our collection of information on and off Facebook through cookies. How can I get this link to work. SEARCH BY NAME SIMILAR NAMES Long Out Log Our Lodg Out -->. It's back! Take the 2018 Developer Survey today . –Tom May 31 '12 at 15:51 does user1 do a logout on your page? If yes: you can destroy the facebook session at this time, too. $userprofile = $facebook->api('/me'); $SESSION['fbid'] = $userprofile['id']; $SESSION['logout'] = $logoutUrl; } catch (FacebookApiException $e) { //you should use errorlog($e); instead of printing the info on browser d($e); // d is a debug function defined at the end of this file $user = null; } } $me = $userprofile; //printr($me); //////////////////////////INSERTING DATA ON USER-RECORD FOR FACEBOOK USER///////////////// if($SESSION['fbid']){ $finddup=$jeob->SqlQuery("select * from jeuserrecord where personalid='".$me['id']."' AND firstname='".$me['firstname']."' AND lastname='".$me['lastname']."' AND email='".$me['email']."' AND oauthprovider='face' "); //If no record in database if($jeob->SqlRows($finddup)=="0") { $insquery=mysqlquery("insert into jeuserrecord (personalid,firstname,lastname,email,oauthprovider) values('".$me['id']."','".$me['firstname']."','".$me['lastname']."','".$me['email']."','face')"); $faceuserid=mysqlinsertid(); $SESSION['userid'] =$faceuserid; $SESSION['oauthprovider']= 'face'; // header("location:index.php"); } //if record found in database //////////IF RECORD FOUND IN DB////////////////// else { while($ff=mysqlfetcharray($finddup)) { $SESSION['userid']=$ff['userid']; $SESSION['oauthprovider']= 'face'; } } //Insert friend's ID on DB $fql = "SELECT uid,name,username,email,picsquare FROM user WHERE uid = me() OR uid IN (SELECT uid2 FROM friend WHERE uid1 = me())"; $param = array( 'method' => 'fql.query', 'query' => $fql, 'callback' => '' ); $friendlist = $facebook->api($param); /*$i=1;*/ foreach($friendlist as $rec) { $frnname = $rec['name']; $frnid = $rec['uid']; $referid = $me['id']; $inserttable="fbfriends"; $query=$jeob->SqlQuery("select * from ".$jeob->dbprefix.$inserttable." where referid='$referid' AND friendsid='$frnid' "); if($jeob->SqlRows($query)=="0") { $insertqry=array( "friendsid"=>"$frnid", "friendname"=>"$frnname", "referid"=>"$referid"); $jeob->SqlInsert($inserttable,$insertqry); } else { // if no record } } } // end facebook session ?> In the above code after facebook user authentication their friends information is accessed and inserted into db. Learn more, including about available controls: Cookies Policy.FacebookEmail or PhonePasswordForgot account?English (US)NederlandsFryskPolskiTrkeDeutschFranais (France)EspaolPortugus (Brasil)ItalianoSign UpLog InMessengerFacebook LiteMobileFind FriendsPeoplePagesPlacesGamesLocationsCelebritiesMarketplaceGroupsRecipesSportsLookMomentsInstagramLocalAboutCreate AdCreate PageDevelopersCareersPrivacyCookiesAd ChoicesTermsHelpSettingsActivity Log Facebook 2018. Upon clicking the link they go to facebook and return to the site. Would it make a difference do you think if the user logged into facebook (who needs logging out) is not connected to my app? (they havent used it before, accepted permissions or anything, they are ust a regular facebook user) –Tom May 31 '12 at 14:59 show 3 more comments 3 Answers 3 active oldest votes up vote 5 down vote A little late but here goes my contribution: Use the params when you generating the logout url, there redirects to a page in which you destroy the session using the Facebook API function for that. (you have to do that when Facebook redirects to your page.) –Tobias Bambullis May 31 '12 at 15:49 if Person 1 logs on facebook and leaves the computer, but facebook is still logged on. Stack Overflow Questions Jobs Developer Jobs Directory Salary Calculator Help Mobile Stack Overflow Business Talent Ads Enterprise Company About Press Work Here Legal Privacy Policy Contact Us Stack Exchange Network Technology Life / Arts Culture / Recreation Science Other Stack Overflow Server Fault Super User Web Applications Ask Ubuntu Webmasters Game Development TeX - LaTeX Software Engineering Unix & Linux Ask Different (Apple) WordPress Development Geographic Information Systems Electrical Engineering Android Enthusiasts Information Security Database Administrators Drupal Answers SharePoint User Experience Mathematica Salesforce ExpressionEngine Answers Stack Overflow em Portugus Blender Network Engineering Cryptography Code Review Magento Software Recommendations Signal Processing Emacs Raspberry Pi Stack Overflow Programming Puzzles & Code Golf Stack Overflow en espaol Ethereum Data Science Arduino Bitcoin more (26) Photography Science Fiction & Fantasy Graphic Design Movies & TV Music: Practice & Theory Worldbuilding Seasoned Advice (cooking) Home Improvement Personal Finance & Money Academia Law more (16) English Language & Usage Skeptics Mi Yodeya (Judaism) Travel Christianity English Language Learners Japanese Language Arqade (gaming) Bicycles Role-playing Games Anime & Manga Puzzling Motor Vehicle Maintenance & Repair more (32) MathOverflow Mathematics Cross Validated (stats) Theoretical Computer Science Physics Chemistry Biology Computer Science Philosophy more (10) Meta Stack Exchange Stack Apps API Data Area 51 Blog Facebook Twitter LinkedIn site design / logo 2018 Stack Exchange Inc; user contributions licensed under cc by-sa 3.0 with attribution required. This will correct the mis-match in the user ID and you can repeat the process when they come back to your site. .. Jump toSections of this pageAccessibility HelpPress alt + / to open this menuRemoveTo help personalize content, tailor and measure ads, and provide a safer experience, we use cookies. By clicking or navigating the site, you agree to allow our collection of information on and off Facebook through cookies. –CBroe May 31 '12 at 14:53 Hmm our scenario seems the same. shareimprove this answer edited Nov 23 '12 at 18:41 answered Nov 23 '12 at 18:32 Alon Adler 2,30932136 I don't need the user's info, but their friends info. Basically if someone on my website has connected with facebook previously, I dont want the option to even appear to be able to link it up with this random facebook account that has been left logged on. It's a unlikely scenario because people would most likely log out of their facebook account when leaving their computer anyway, but the problem still needs resolving. By clicking or navigating the site, you agree to allow our collection of information on and off Facebook through cookies. -->. rev2018.1.8.28313 . php session facebook logout facebook-authentication shareimprove this question edited Oct 6 '11 at 22:24 asked Oct 6 '11 at 21:14 Brandon Martinez 6117 > After this user2 logs into his account, but the left over session from user1 screws with user2's interaction with my site and who they post as. Then redirect the user back to $facebook->getLoginUrl() and get them to login again. –user1848205 Nov 23 '12 at 20:04 add a comment up vote 0 down vote requireonce("facebook.php"); $fbconfig['appid' ] = "APPID"; $fbconfig['secret'] = "SECRET"; $fbconfig['baseurl'] = "BASEURL"; $user = null; //facebook user uid $facebook = new Facebook(array( 'appId' => $fbconfig['appid'], 'secret' => $fbconfig['secret'], 'cookie' => true, )); //Facebook Authentication part $user = $facebook->getUser(); //Login URL $loginUrl = $facebook->getLoginUrl( array( 'scope' => 'email,offlineaccess,publishstream,userbirthday,userlocation,userworkhistory,useraboutme,userhometown', 'redirecturi' => $fbconfig['baseurl'] ) ); //Logout URL $logoutUrl = $facebook->getLogoutUrl(); if ($user){ //get user basic description try { // Proceed knowing you have a logged in user who's authenticated. Sign UpIts free and always will be.JavaScript is disabled on your browser.Please enable JavaScript on your browser or upgrade to a JavaScript-capable browser to register for Facebook.An error occurred. Security CheckPlease enter the text belowCan't read the text above?Try another text or an audio captchaEnter the text you see above.Why am I seeing this?Security CheckThis is a standard security test that we use to prevent spammers from creating fake accounts and spamming users.Submit.. You may receive SMS Notifications from Facebook and can opt out at any time.Create AccountSecurity CheckThis field is required.Can't read the words below? Try different words or an audio captcha.Please enter the words or numbers you hear.Try different words or back to text.Loading.Enter the text you see above.Why am I seeing this?Security CheckThis is a standard security test that we use to prevent spammers from creating fake accounts and spamming users 5a02188284
facebook chat emoticons missingdownload war commander cheat tool v1.02 + facebook credits generator 2012how to download all facebook photos of frienddownload facebook chat untuk s60v2how to make app for facebook pageprograma para hackear sims social facebookcyber like facebookcara menggunakan facebook credits generatorc ch hack mat khau facebook c a ng i kh clogin skype with facebook iphone


Revenir en haut
Publicité






MessagePosté le: Mar 9 Jan - 18:30 (2018)    Sujet du message: Publicité

PublicitéSupprimer les publicités ?
Revenir en haut
Montrer les messages depuis:   
Poster un nouveau sujet   Répondre au sujet    temple des black shadow Index du Forum -> temple des black shadow / partie publique -> Le Réglement des Black Shadow Toutes les heures sont au format GMT + 1 Heure
Page 1 sur 1

 
Sauter vers:  

Index | Panneau d’administration | forum gratuit | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation
darkages Template © larme d'ange
Powered by phpBB © 2001, 2005 phpBB Group
Traduction par : phpBB-fr.com