Hi When I am sending a message by unification-engine api in google plus then I am getting this error
stdClass Object
(
[Status] => stdClass Object
(
[GP] => stdClass Object
(
[status] => 504
[info] => 504 Connection Error: Post https://googleplus-v2connector.unificationengine
.com/v2/message/send: EOF:
)
)
[URIs] => Array
(
)
)
unificationengine api working fine with facebook and twitter but its not working with googleplus
My code is
$app = new UEApp("APP_KEY","APP_SECRATE");
$user = new UEUser("USER_KEY","USER_SECRET");
$connection = $user->add_connection('google', "googleplus", $access_token);
$options = array(
"receivers" => array(
array(
"name"=> "Me"
)
),
"message"=>array(
"subject"=>"ABC",
"body"=> "",
"image"=>$shareImageUrl,
"link"=>array(
"uri"=> $link,
"description"=> "",
"title"=>"Click here for view"
)
)
);
//Send the message and get their uris
$uris = $connection->send_message($options);
print_r($uris);
$myArray = explode('/', $uris[0]);
return $myArray[3];
2
Answers
Can you please change the receivers part as follows and check whether you can post message
“receivers” => array(
)
I could able to send by using following sample code. Can you please try with this?