CIFCOM跨境电商 CIFCOM跨境电商

当前位置: 首页 » 出海百科 »

如何访问Google

Facebook、Twitter登录及分享

创建应用接入

使用Hello.js接入

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

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 2024", "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分享

触发分享:

<a href="_javascript:void(0)" @click="fbShare">facebook 分享</a>fbShare () { let sharePath = '' // 分享出去之后别人打开的链接 let title = '' // 分享标题 window.open('?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配置如下

<meta property="og:locale" content="en-US"><meta property="og:type" content="website"><meta property="og:title" content="realme Holi Game"><meta property="og:image" content="xx.jpg"><meta property="og:description" content="hello world">Twitter分享

触发分享:

<a href="_javascript:void(0)" @click="twShare">Twitter 分享</a>twShare () { let content = '' window.open(?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配置如下

<meta name="twitter:title" content="realme Holi Game"><meta name="twitter:description" content="content"><meta name="twitter:image" content="xx.jpg"><meta name="twitter:card" content="summary">

怎么查看facebook账号信息

如何找到我的 Facebook 帐户信息?

如何找到我的 Facebook 帐户? 打开 facebook.com/login/identify 上的查找帐户”页面,然后按照以下说明操作。使用您已登录 Facebook 帐户的电脑或手机。找到您要恢复的帐户。您可以按姓名、电子邮件地址或电话号码进行搜索。

如果您发现您的主页未出现在 Facebook 搜索结果中,请确保您的主页没有年龄限制或地区限制。您的页面已发布。您的页面有个人资料照片、封面照片和号召性用语按钮。

打开一个应用程序。Facebook。. 输入以下任何信息: 电子邮件地址。您可以使用 Facebook 帐户中的任何电子邮件地址。电话号码。输入您的密码并单击 。进入。.

转到所需帐户的个人资料。单击该图标并选择获取支持或索赔。选择其他。单击恢复此帐户并按照屏幕上的说明进行操作。

转到上的登录页面。在右上角,单击

输入您的电子邮件地址或电话号码或您的名字和姓氏或与您的帐户关联的用户名,单击搜索并按照屏幕上的说明进行操作。

登录 Google 管理控制台。登录您的管理员帐户(不以@gmail.com 结尾)。在搜索框中,输入您的用户名或电子邮件地址。在出现的列表中,选择您想要的帐户并点击它以访问相应的页面。

另一方面,如果您没有办法从您的电话号码恢复您的 Facebook 密码,因为您没有将它链接到您的帐户,您可以简单地使用您的电子邮件地址。

登录您的 Facebook 帐户并在搜索框中输入您的电话号码,然后从提供的匹配列表中选择您想要的人。

转到您的个人资料,然后点击图标。选择设置。选择 。账单。并选择关联账户。. 龙头。Facebook。并输入您的 Facebook 帐户的访问数据。.

点击 Facebook 窗口右上角的图标。向下滚动并点击设置。向下滚动到隐私”部分,然后点击锁定”。点击要解锁的个人资料旁边的解锁。

Facebook 帐户 Facebook 添加了切换帐户的功能。为此,请退出您的主帐户并访问您的第二个帐户。两个帐户的登录详细信息将被保存,您可以通过单击注销”按钮在它们之间切换。

单击该图标并输入配置文件名称。选择您想要的配置文件。点击 ,然后点击领取。选择其他。请重置此帐户并按照屏幕上的说明进行操作。

未经允许不得转载: CIFCOM跨境电商 » 如何访问Google

相关文章

themebetter

contact