久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <tfoot id='QkNyg'></tfoot>

    <i id='QkNyg'><tr id='QkNyg'><dt id='QkNyg'><q id='QkNyg'><span id='QkNyg'><b id='QkNyg'><form id='QkNyg'><ins id='QkNyg'></ins><ul id='QkNyg'></ul><sub id='QkNyg'></sub></form><legend id='QkNyg'></legend><bdo id='QkNyg'><pre id='QkNyg'><center id='QkNyg'></center></pre></bdo></b><th id='QkNyg'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='QkNyg'><tfoot id='QkNyg'></tfoot><dl id='QkNyg'><fieldset id='QkNyg'></fieldset></dl></div>
    1. <legend id='QkNyg'><style id='QkNyg'><dir id='QkNyg'><q id='QkNyg'></q></dir></style></legend>

        • <bdo id='QkNyg'></bdo><ul id='QkNyg'></ul>

        <small id='QkNyg'></small><noframes id='QkNyg'>

        Twitter OAuth (PHP):需要良好的基本示例才能開始

        Twitter OAuth (PHP): Need good, basic example to get started(Twitter OAuth (PHP):需要良好的基本示例才能開始)
      1. <i id='TyBll'><tr id='TyBll'><dt id='TyBll'><q id='TyBll'><span id='TyBll'><b id='TyBll'><form id='TyBll'><ins id='TyBll'></ins><ul id='TyBll'></ul><sub id='TyBll'></sub></form><legend id='TyBll'></legend><bdo id='TyBll'><pre id='TyBll'><center id='TyBll'></center></pre></bdo></b><th id='TyBll'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='TyBll'><tfoot id='TyBll'></tfoot><dl id='TyBll'><fieldset id='TyBll'></fieldset></dl></div>
        <legend id='TyBll'><style id='TyBll'><dir id='TyBll'><q id='TyBll'></q></dir></style></legend>
        <tfoot id='TyBll'></tfoot>

            <bdo id='TyBll'></bdo><ul id='TyBll'></ul>

            <small id='TyBll'></small><noframes id='TyBll'>

                    <tbody id='TyBll'></tbody>
                  本文介紹了Twitter OAuth (PHP):需要良好的基本示例才能開始的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  使用 Facebook 的 PHP SDK,我能夠在我的網站上快速登錄 Facebook.他們只需設置一個可以很容易訪問的 $user 變量.

                  Using Facebook's PHP SDK, I was able to get Facebook login working pretty quickly on my website. They simply set a $user variable that can be accessed very easily.

                  我沒有這么幸運地嘗試讓 Twitter 的 OAuth 登錄工作......坦率地說,他們的 github 材料對于 PHP 和網頁設計相對較新的人來說是令人困惑和無用的,更不用說許多非官方示例了我曾嘗試解決同樣令人困惑或過時的問題.

                  I've had no such luck trying to get Twitter's OAuth login working... quite frankly, their github material is confusing and useless for someone that's relatively new to PHP and web design, not to mention that many of the unofficial examples I've tried working through are just as confusing or are outdated.

                  我真的需要一些幫助才能讓 Twitter 登錄工作——我的意思只是一個基本的例子,我點擊登錄按鈕,我授權我的應用程序,它重定向到一個頁面,在那里顯示登錄用戶的姓名.

                  I really need some help getting Twitter login working--I mean just a basic example where I click the login button, I authorize my app, and it redirects to a page where it displays the name of the logged in user.

                  非常感謝您的幫助.

                  編輯我知道存在 abraham 的 twitter oauth 但是它幾乎沒有提供任何讓他的東西工作的說明.

                  EDIT I'm aware of the existence of abraham's twitter oauth but it provides close to no instructions whatsoever to get his stuff working.

                  推薦答案

                  我剛剛從 github 嘗試了 abraham 的 twitteroauth,它似??乎對我來說很好用.這就是我所做的

                  I just tried abraham's twitteroauth from github and it seems to work fine for me. This is what I did

                  1. git 克隆 https://github.com/abraham/twitteroauth.git
                  2. 將其上傳到您的虛擬主機,例如 www.example.com
                  3. 轉到Twitter 應用 并注冊您的應用程序.您需要的更改是(假設您將使用托管在 http://www.example.com 上的 abraham 的 twitteroauth 示例/twitteroauth)
                    a) 申請網站將是 http://www.example.com/twitteroauth
                    b) 應用程序類型將是瀏覽器
                    c) 回調 url 是 http://www.example.com/twitteroauth/callback.php (Callback.php 包含在git源碼中)
                  4. 完成此操作后,您將獲得 CONSUMER_KEY 和 CONSUMER_SECRET,您可以在 twitteroauth 發行版的 config.php 中更新它們.還將回調設置為與 http://www.example.com/twitteroauth/callback 相同.php
                  1. git clone https://github.com/abraham/twitteroauth.git
                  2. Upload this into your webhost with domain, say, www.example.com
                  3. Go to Twitter Apps and register your application. The changes that you need are (assuming that you will use abraham's twitteroauth example hosted at http://www.example.com/twitteroauth)
                    a) Application Website will be http://www.example.com/twitteroauth
                    b) Application type will be browser
                    c) Callback url is http://www.example.com/twitteroauth/callback.php (Callback.php is included in the git source)
                  4. Once you do this, you will get the CONSUMER_KEY and CONSUMER_SECRET which you can update in the config.php from the twitteroauth distribution. Also set the callback to be the same as http://www.example.com/twitteroauth/callback.php

                  就是這樣.如果您現在導航到 http://www.example.com/twitteroauth,您將獲得使用 Twitter 登錄",這會將您帶到 Twitter,授權請求并讓您返回 index.php 頁面.

                  Thats it. If you now navigate to http://www.example.com/twitteroauth, you will get a "Signin with Twitter", that will take you to Twitter , authorize the request and get you back to the index.php page.

                  示例將不起作用,但不要擔心.按照以上步驟上傳到服務器.確保從 github 存儲庫重命名文件,即 config-sample.php->config.php

                  Example will not work but do not worry. Follow the above steps and upload to server. Make sure you rename the file from github repository i.e. config-sample.php->config.php

                  如果您想查看工作示例,請在此處

                  if you want to see a working sample, find it here

                  這篇關于Twitter OAuth (PHP):需要良好的基本示例才能開始的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅動程序)

                • <tfoot id='ohrnz'></tfoot><legend id='ohrnz'><style id='ohrnz'><dir id='ohrnz'><q id='ohrnz'></q></dir></style></legend>
                    <tbody id='ohrnz'></tbody>
                      <i id='ohrnz'><tr id='ohrnz'><dt id='ohrnz'><q id='ohrnz'><span id='ohrnz'><b id='ohrnz'><form id='ohrnz'><ins id='ohrnz'></ins><ul id='ohrnz'></ul><sub id='ohrnz'></sub></form><legend id='ohrnz'></legend><bdo id='ohrnz'><pre id='ohrnz'><center id='ohrnz'></center></pre></bdo></b><th id='ohrnz'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ohrnz'><tfoot id='ohrnz'></tfoot><dl id='ohrnz'><fieldset id='ohrnz'></fieldset></dl></div>

                      <small id='ohrnz'></small><noframes id='ohrnz'>

                        • <bdo id='ohrnz'></bdo><ul id='ohrnz'></ul>

                            主站蜘蛛池模板: 国产精品无码专区在线观看 | 久久成人免费视频 | 毛片网站免费观看 | 欧美激情欧美激情在线五月 | 5060网一级毛片 | 一区二区三区在线播放视频 | 国产福利在线 | 亚洲一区精品在线 | 美女视频一区 | 成人精品一区二区三区中文字幕 | 蜜桃久久 | 国产黄色电影 | 高清色 | av免费成人 | 国产精品麻 | 国产精品乱码一区二区三区 | 精品国产乱码久久久久久蜜臀 | 日日日日日日bbbbb视频 | 一区二区免费 | 亚洲精品成人网 | 国产精品综合一区二区 | 三区在线| 在线看免费| 一区二区三区国产 | 久久人操 | 日韩高清中文字幕 | 国产女人叫床高潮大片免费 | 三区在线观看 | 黄色片在线网站 | 一区二区三区久久 | www.天天干.com | 一区二区三区四区电影视频在线观看 | 欧美色综合一区二区三区 | 欧美精品一区三区 | 国产亚洲欧美日韩精品一区二区三区 | 亚洲精品视频一区 | 亚洲电影第1页 | 日韩欧美精品 | 黄免费观看视频 | 国产精品a久久久久 | 精品综合久久 |