pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

  • <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="6k0aso2" 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="ooayayi" 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="wcwwc0o" 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>

                            主站蜘蛛池模板: 综合管廊模具_生态,阶梯护坡模具_检查井模具制造-致宏模具厂家 | 维泰克Veertek-锂电池微短路检测_锂电池腐蚀检测_锂电池漏液检测 | 北京公司注册_代理记账_代办商标注册工商执照-企力宝 | 天然鹅卵石滤料厂家-锰砂滤料-石英砂滤料-巩义东枫净水 | 家用净水器代理批发加盟_净水机招商代理_全屋净水器定制品牌_【劳伦斯官网】 | 驾驶式洗地机/扫地机_全自动洗地机_工业洗地机_荣事达工厂官网 | 尾轮组_头轮组_矿用刮板_厢式刮板机_铸石刮板机厂家-双驰机械 | 户外-组合-幼儿园-不锈钢-儿童-滑滑梯-床-玩具-淘气堡-厂家-价格 | 上海乾拓贸易有限公司-日本SMC电磁阀_德国FESTO电磁阀_德国FESTO气缸 | 宜兴市恺瑞德环保科技有限公司| 神马影院-实时更新秒播| 数码听觉统合训练系统-儿童感觉-早期言语评估与训练系统-北京鑫泰盛世科技发展有限公司 | ERP企业管理系统永久免费版_在线ERP系统_OA办公_云版软件官网 | 钢丝绳探伤仪-钢丝绳检测仪-钢丝绳探伤设备-洛阳泰斯特探伤技术有限公司 | 检验科改造施工_DSA手术室净化_导管室装修_成都特殊科室建设厂家_医疗净化工程公司_四川华锐 | 干洗加盟网-洗衣店品牌排行-干洗设备价格-干洗连锁加盟指南 | 航空障碍灯_高中低光强航空障碍灯_民航许可认证航空警示灯厂家-东莞市天翔航天科技有限公司 | 棉柔巾代加工_洗脸巾oem_一次性毛巾_浴巾生产厂家-杭州禾壹卫品科技有限公司 | 逗网红-抖音网红-快手网红-各大平台网红物品导航 | 天津仓储物流-天津电商云仓-天津云仓一件代发-博程云仓官网 | 网架支座@球铰支座@钢结构支座@成品支座厂家@万向滑动支座_桥兴工程橡胶有限公司 | 气动机械手-搬运机械手-气动助力机械手-山东精瑞自动化设备有限公司 | 青岛美佳乐清洁工程有限公司|青岛油烟管道清洗|酒店|企事业单位|学校工厂厨房|青岛油烟管道清洗 插针变压器-家用电器变压器-工业空调变压器-CD型电抗器-余姚市中驰电器有限公司 | 好杂志网-首页| 蔡司三坐标-影像测量机-3D扫描仪-蔡司显微镜-扫描电镜-工业CT-ZEISS授权代理商三本工业测量 | 集装袋吨袋生产厂家-噸袋廠傢-塑料编织袋-纸塑复合袋-二手吨袋-太空袋-曹县建烨包装 | 水轮机密封网 | 水轮机密封产品研发生产厂家 | 手板-手板模型-手板厂-手板加工-生产厂家,[东莞创域模型] | 华溶溶出仪-Memmert稳定箱-上海协烁仪器科技有限公司 | 电采暖锅炉_超低温空气源热泵_空气源热水器-鑫鲁禹电锅炉空气能热泵厂家 | 管家婆-管家婆软件-管家婆辉煌-管家婆进销存-管家婆工贸ERP | 污水提升器,污水提升泵,地下室排水,增压泵,雨水泵,智能供排水控制器-上海智流泵业有限公司 | 精密模具制造,注塑加工,吹塑和吹瓶加工,EPS泡沫包装生产 - 济南兴田塑胶有限公司 | 乳化沥青设备_改性沥青设备_沥青加温罐_德州市昊通路桥工程有限公司 | 广东高华家具-公寓床|学生宿舍双层铁床厂家【质保十年】 | 拼装地板,悬浮地板厂家,悬浮式拼装运动地板-石家庄博超地板科技有限公司 | 干粉砂浆设备_干混砂浆生产线_腻子粉加工设备_石膏抹灰砂浆生产成套设备厂家_干粉混合设备_砂子烘干机--郑州铭将机械设备有限公司 | 刹车盘机床-刹车盘生产线-龙口亨嘉智能装备 | 巨野月嫂-家政公司-巨野县红墙安康母婴护理中心 | 超声波气象站_防爆气象站_空气质量监测站_负氧离子检测仪-风途物联网 | 游泳池设计|设备|配件|药品|吸污机-东莞市太平洋康体设施有限公司 |