当我使用Instagram共享时,如何从Instagram (当前登录用户)获得用户名和密码。
$app = new UEApp(self::APP_SECRET, self::APP_SECRET);
$user = new UEUser($this->currentUser->unification_userkey, $this->currentUser->unification_usersecret);
$con = $access_token."@instagram.com/?username=rajneesh49&password=test&@instagram.com";现在我使用的是静态密码和用户名,然后它可以正常工作,但是如何获得当前的用户名和密码(统一引擎所要求的)
用户名和密码都是统一引擎所需的字段。
如何在php代码中获得统一引擎共享的密码和用户名。
身份验证只提供此信息。
Array
(
[access_token] => 4544942713.7da612b.4de7a5a78fba2b27a60dc1749d
[user] => Array
(
[id] => 45434542713
[username] => rajneesh8469
[profile_picture] => https://scontent.cdninstagram.com/t51.2885-19/s150x150/16229522_1877141895853233_7596497588304478208_a
.jpg
[full_name] => Rajneesh
[bio] => Testing website
[website] => http://localhost:3000/
))但只有密码是缺少的,所以我如何才能获得当前的用户密码。
发布于 2017-07-31 07:03:54
此问题与任何代码或统一无关,它只与安全性验证有关。我已经在相同的共享中解决了相同的问题,但是我已经通过身份验证解决了这个问题,请按应用程序做下面的一些更改。
只需根据密码更改此内容:
$con = $access_token."@instagram.com/?username=".$username.'&password='.$password&@instagram.com";请按照安全的社会网络来做这件事,证明按照应用程序是很安全的(Instagram和安全性一样好)。
发布于 2017-02-28 10:34:03
我们可以看到,您现在可以在添加连接时指定可选参数,并使用更新后的SDK (https://github.com/unifiedinbox/ue-php-sdk)版本。
在instagram的情况下,每个连接的可选参数在'Add connection‘部分https://developer.unificationengine.com/下指定,可选的params是“用户名”和"password“。
https://stackoverflow.com/questions/42502740
复制相似问题