Created
January 9, 2018 16:54
-
-
Save anonymous/39b2b3fc8e6e0a6f88f61f4b428c9d52 to your computer and use it in GitHub Desktop.
Facebook Oauth Login Php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
******************** | |
Facebook Oauth Login Php ->->->-> | |
******************** | |
http://shurll.com/bzfno | |
(Copy & Paste link) | |
******************** | |
tanghongchang123 20160329 14:47 3401 FacebookGoogle . u011216417 20170621 10:06 1566 Facebook Facebook wReginaw 20161211 21:17 2066 facebookoauth2.0 facebookoauth facebook mochong 20170328 14:28 63 Flask (23) OAuth Facebook OAuth OAuth Facebook Flask (1) Flask . Jmilk 20161209 13:01 3269 facebook FacebookTwitterYouTubeGoogle . SDKsiOS SDKAndroid SDKJavaScript SDKPHP SDKUnity SDK. PCShadowsocks . 0 . stuartjing 20130407 15:43 3398 Google Android JavaSrc package com.bn.chap9.login; import java.io.BufferedReader; imp. 'oauthconsumerkey'=>'OAuthConsumerKey', 'oauthconsumersecret'=>'OAuthConsumerSecret',googlelogin.php Google plusindex.php authenticate(); $SESSION['token']=$client->getAccessToken(); $redirect=' header('Location:'.filtervar($redirect,FILTERSANITIZEURL)); } if(isset($SESSION['token'])){ $client->setAccessToken($SESSION['token']); } if(isset($REQUEST['logout'])){ unset($SESSION['token']); unset($SESSION['googledata']);//Googlesessiondataunset $client->revokeToken(); } if($client->getAccessToken()) { $user=$oauth2->userinfo->get(); $SESSION['googledata']=$user;//StoringGoogleUserDatainSession header("location:home.php"); $SESSION['token']=$client->getAccessToken(); }else{ $authUrl=$client->createAuthUrl(); } if(isset($personMarkup)): print$personMarkup; endifif(isset($authUrl)) { echo" GoogleAccountLogin "; }else{ echo" Logout "; } ?> home.php userGoogle plussession db.php google login api php 1. SDKsiOS SDKAndroid SDKJavaScript SDKPHP SDKUnity SDK. fuckomg 20160606 11:09 1538 Google API Oauth 2.0 URL google . stuartjing 20130407 15:43 3398 JavaGoogle OAuthOAuth2.0TwitterOAuth1.0qq. terrywater 20150419 20:34 823 Google robin 1. 2. SupportPlatform StatusDevelopers GroupMarketing PartnersBugs.. qq25868207 20170609 18:01 2646 iszhoufeng 181 297 1 XSS & Git linuxInode ServiceLoader markdown java 86 linux 22 js 2 3 webservice 4 12 restlet 12 rabbitmq 7 nio 0 redis 3 mybatis 3 mysql 1 RPC 1 mina 2 spring 3 markdown 1 markdown 0 git 1 xss 1 20165 2 20164 1 20162 2 201511 1 201510 1 20156 1 20155 2 20154 3 20153 1 20151 1 20148 4 20146 3 20145 5 20143 7 20142 1 201312 3 201310 2 20139 6 20138 27 20137 4 20135 4 20134 3 20133 4 20131 16 201212 15 201211 25 201210 10 20129 12 20128 10 20127 5 20126 20 20125 26 Java&^ 153914 JAVALongInteger 42266 java Class 34882 dwr 34636 Spring Mail Api 31255 webmastercsdn.net 400-660-0108 ICP09002463 Copyright 1999-2018 CSDN.NET, All Rights Reserved . qingfeng812 20130911 12:40 1728 Linked Google Facebook oAuth ID ID. PHPgoogle Google Oauth (30) . manongxiaomei 20170328 11:15 3018 Google Map API PHP Google Map API PHPIPIPGoogle Map APIGoo. fuckomg 20160606 11:09 1538 Flask (23) OAuth Facebook OAuth OAuth Facebook Flask (1) Flask . ProductsFacebook LoginSharing on FacebookGamesFacebook App Ads. SupportPlatform StatusDevelopers GroupMarketing PartnersBugs.. 2.+AS2.1.2+1CM13Android6.0 . .. SDK SDK . u014459556 20140401 17:43 112 google SDKfacebook SDK 1. chuckGao 20110302 21:43 3092 feilong12 151 5 79 memcache phpcms HTML5 GD Smarty 9 LINUX 19 20 php 30 css 0 mysql 10 js 13 HTML5 9 dedecms 6 LIUX 2 Android 1 1 XML 5 MVC 6 js php 1 ajax 1 Jquery 16 ThinkPHP 5 phpcms 1 20148 1 20137 1 20136 8 20135 31 20134 23 20133 25 20132 8 20131 6 201212 22 201211 29 mvc 5055 HTML5 4022 js 2623 jquery 2428 Jquery6 2353 webmastercsdn.net 400-660-0108 ICP09002463 Copyright 1999-2018 CSDN.NET, All Rights Reserved . ToolsGraph API ExplorerOpen Graph DebuggerObject BrowserJavaScript Test ConsoleAPI Upgrade ToolFacebook Analytics. jinmouse 20140805 18:33 982 Android ShareSDKQQFacebookLinkedinGoogle 1. ToolsGraph API ExplorerOpen Graph DebuggerObject BrowserJavaScript Test ConsoleAPI Upgrade ToolFacebook Analytics. PHPgoogle Google Oauth 20130520 14:22:02 PHP / / Google / 1560 FacebookTwitterGoogle plusInstagramOauthGoogleOauthwebGoogleOauthweb Google Oauth DemoLive Demo CREATETABLEusers ( idINTPRIMARYKEYAUTOINCREMENT, emailVARCHAR(50)UNIQUE, fullnameVARCHAR(100), firstnameVARCHAR(50), lastnameVARCHAR(50), googleidVARCHAR(50), genderVARCHAR(10), dobVARCHAR(15), profileimageTEXT, gpluslinkTEXT )1 2 HTMLMETA 3OAuth Keys OAuthOAuth Oauth keys 4, Google API Google APIID Google API Google API ID Google Oauth config.php srcOAuthConsumer keysURL //OAuth2Settings,youcangetthesekeysat 'oauth2clientid'=>'AppClientID', 'oauth2clientsecret'=>'AppClientSecret', 'oauth2redirecturi'=>' //OAuth1SettingsStep3keys. Linked Google Facebook oAuth (30) . ShareSDKAppKey ShareSDKappkey 2. jinmouse 20140805 18:33 982 QtGoogle API1-- OAuth OAuth chuckGao 20110217 22:14 2071 QtGoogle API2-- OAuth OAuthGoogle APIOAuth Access TokenOAuth Access Token1.Ac. robinjava 20160914 18:23 7046 Google Map API PHP Google Map API PHPIPIPGoogle Map APIGoo. 1 . Linked Google Facebook oAuth 20130829 18:18:01 7976 ID IDtoken tokentoken Linked oAuth LinkedoAuth API Keys Applications ApplicationApplicationAPIKeySecret Key Linked 1 LinkedredirecturiURLurlcode 2 &code=code &redirecturi= &clientid=h1lfn2m9l45p &clientsecret=XD0MqE4YQYjjcXop JsonResponseResponsetoken 3 XMLResponse 4 clientId EMIAL 12redirecturlServletURL 23Servletsession Gmail oAuth gmail ClientID client idclient secretEmailaddressRedirectURIs LinkedoAuth googleredirecturiURLstatecode tokenId post POST /o/oauth2/token HTTP/1.1 Host: accounts.google.com Content-Type: application/x-www-form-urlencoded code=code clientid=8819981768.apps.googleusercontent.com& clientsecret={clientsecret}& redirecturi= granttype=authorizationcode JSONResponseaccesstoken GET /oauth2/v1/userinfo HTTP/1.1 Authorization: accesstoken Host: googleapis.com facebook oAuth facebook Linked Google Facebook oAuth ID ID 5a02188284 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment