簡體   English   中英

UnificationEngine不適用於Instagram

[英]Unificationengine not working with instagram

當我通過UnificationEngine在instagram上共享消息時,出現此錯誤:

Exception in UEUser.php line 74: The password you entered is incorrect. Please try again in UEUser.php line 74

at UEUser->add_connection('instagramBoard', 'instagram', '4544942713.7da612b.4de7a5a78fb0491dba2b27a60dc1749d') i

我的代碼是:

 $app = new UEApp("APP_KEY","APP_SECRATE");
 $user = new UEUser("USER_KEY", "USER_SECREATE");
 $con = $access_token ."@instagram.com/?username=rajneesh8239&password=testing1";
 $connection = $user->add_connection("instagramBoard", "instagram",   $con);
 $options = array(
      "receivers" => array(
            array(
                  "name"=> "Me"
             )
        ),
        "message"=>array(
            "subject"=>"Transparentcom testing fine",
             "body"=> "",
              "image"=> '',
               "link"=>array(
                   "uri"=> '',
                    "description"=> "",
                    "title"=>"Click here for view"
             )
          )
       );
 //Send the message and get their uris
 $uris = $connection->send_message($options);

CURL錯誤:

vagrant @ homestead:〜/代碼/ laravel $ curl -XPOST https://apiv2.unificationengine.c om / v2 / user / create -u 590f402bd2a043f98823eb1940b2ab:a62c855ae17b5cacb355abfbcc3a93 --data'{}'{“狀態”:200,“ info “:” 200 OK“,” uri“:” user:// 0e4946b0-9e60-4e0f-b54-f4e39ab5b0b:0490d37c-e284-422e-b8de-00b5f81ff81 @“}

vagrant @ homestead:〜/代碼/ laravel $ curl -XPOST https://apiv2.unificationengine.c om / v2 / connection / add -u 0e494b0-9e-4e0f-ab54-f4eab53b0b:04937c-e284-422e-b8de-003b5f81ff81 --data'{“ uri”:“ instagram://4544942713.7da612b.4de7a5a78fb0491dba2b327a60dc1749d@instagram.com”,“名稱”:“ instagram”}'{“狀態”:500,“信息”:“錯誤的密碼”}

請以這種方式使用此代碼,只需以這種方式更改此行。

$con = $access_token."@instagram.com/?username=rajneesh8239&password=testing1";
$connection = $user->add_connection("instagramBoard", "instagram", $con);

請檢查代碼

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM