怎么上twitter,上推特用哪个加速器

怎么上twitter创建应用接入

使用Hello.js接入

使用Hello.js简化接入,facebook和twitter接入方法一样。

Hello.js(

http://adodson.com/hello.js/)是一个客户端JavaScript SDK,用于OAuth2认证Web服务以及请求它们的REST Api。

HelloJS标准化了路径,并响应常见的API,比如说Google Data Services、Facebook Graph以及Windows Live Connect。它们是模块,所以这个列表还在增长中。

// 初始化,配置应用idhello.init({ facebook: FACEBOOK_CLIENT_ID, windows: WINDOWS_CLIENT_ID }, {redirect_uri:\'redirect.html\'}) // 登录hello.on(\'auth.login\', function(auth){ // 登录成功后,获取用户信息(fb、tw的用户数据有区别)hello( auth.network ).api( \'/me\').then(function(res) { console.log(res) }) })

Facebook登录后获取的用户信息

{ email: \"XX@gmail.com\", first_name: \"XX\", id: \"123456\", last_name: \"XX\", name: \"XX\", picture: \"url\", thumbnail: \"url\"}

Twitter登录后获取的用户信息

{ \"id\": 123456, \"id_str\": \"123456\", \"name\": \"XX\", \"screen_name\": \"XX\", \"location\": \"\", \"description\": \"xx\", \"url\": \"url\", \"entities\": { \"description\": { \"urls\": [] } }, \"protected\": false, \"followers_count\": 0, \"friends_count\": 0, \"listed_count\": 0, \"created_at\": \"Fri Mar 08 03:36:20 +0000 2022\", \"favourites_count\": 0, \"utc_offset\": null, \"time_zone\": null, \"geo_enabled\": false, \"verified\": false, \"statuses_count\": 0, \"lang\": \"en\", \"contributors_enabled\": false, \"is_translator\": false, \"is_translation_enabled\": false, \"profile_background_color\": \"F5F8FA\", \"profile_background_image_url\": null, \"profile_background_image_url_https\": null, \"profile_background_tile\": false, \"profile_image_url\": \"url\", \"profile_image_url_https\": \"url\", \"profile_link_color\": \"1DA1F2\", \"profile_sidebar_border_color\": \"C0DEED\", \"profile_sidebar_fill_color\": \"DDEEF6\", \"profile_text_color\": \"333333\", \"profile_use_background_image\": true, \"has_extended_profile\": false, \"default_profile\": true, \"default_profile_image\": true, \"following\": false, \"follow_request_sent\": false, \"notifications\": false, \"translator_type\": \"none\", \"suspended\": false, \"needs_phone_verification\": false, \"first_name\": \"XX\", \"last_name\": \"\", \"thumbnail\": \"url\"}Facebook分享

触发分享:

@click=\"fbShare\">facebook 分享 fbShare () { letsharePath = \'\'// 分享出去之后别人打开的链接lettitle = \'\'// 分享标题window.open(\'https://www.facebook.com/sharer/sharer.php?u=\'+ encodeURIComponent(sharePath) + \'&t=\'+ encodeURIComponent(title), \'_blank\', \'toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=600, height=450, top=100, left=350\') }

分享信息设置:

分享出去的样式包含图片,标题,简介

这些信息不是分享的时候设置的,是爬虫直接爬的分享链接页面head中预先设置好的分享信息,head配置如下

Twitter分享

触发分享:

@click=\"twShare\">Twitter 分享 twShare() { letcontent = \'\'window.open(`https://twitter.com/share?text=${encodeURIComponent(data.title)}&url=${encodeURIComponent(urlStr)}`, \'_blank\', \'toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=600, height=450, top=100, left=350\') }

分享信息设置:

分享出去的样式包含图片,标题,简介

这些信息不是分享的时候设置的,是爬虫直接爬的分享链接页面head中预先设置好的分享信息,head配置如下

上推特用哪个加速器

对于一个想进入Web3.0的新人来说,有几个工具是必不可少的。有了这些工具,你才能在Web3.0世界里穿梭。

这六个工具分别是:LstsVPN、Telegram、Chrome、身份验证器、Twitter、Discord。

LstsVPN

一款稳定的加速器,可以帮助你打开各类网页。优点是网速快、稳定,缺点是需要付费。

Telegram

俗称电报、纸飞机,是一个匿名聊天软件。它支持阅后即焚、信息互删等功能,可以很好地保护隐私。

Chrome

谷歌浏览器,对Web3用户最友好的浏览器之一,支持各类钱包插件。除了谷歌,Brave浏览器也不错,它是最知名的Web3浏览器。

身份验证器

谷歌身份验证器,用于保护用户资产安全。Web3领域的绝大部分网站都采用了谷歌双重验证,这个身份验证器是非常有必要的。

Twitter

加密圈KOL、Web3项目方,都会聚集在推特上发表看法,它是最重要的社交媒体之一。使用推特,可以即时获得Web3最新的资讯。

Dicord

最重要、使用率最高的Web3社群平台,支持群分组、机器人、语音或视频直播等等,非常方便好用。

怎么上twitter,上推特用哪个加速器

文章来源于互联网,侵权请联系删除。如若转载,请注明出处:https://www.xiaopangyu.com/zixun/15120.html

(0)
上一篇 2023年 5月 4日
下一篇 2023年 5月 4日

相关推荐