› Forums › NextScripts API Forums – Google+, Pinterest, LinkedIn, etc.. › Problem posting images in with G+
- This topic has 3 replies, 1 voice, and was last updated 11 years ago by NextScripts.com.
- AuthorPosts
- November 8, 2013 at 11:46 am #30363CiroParticipant
Hello!
I’m using the Google+ Automated Post, from NextScripts, version 2.9.8 (Oct 18, 2013).
An error occurs in certain posts, when I try to post a photo in page wall.
See the function “doPostToGooglePlus2” returns:
Content type is neither image nor video: name: "file",filename: "spongebob-perfect-teeth-527bbcd92260c_social.jpg",size: 24358,estimated_size: 24358,location <blob_size: 24358,BlobstoreLocation {blob_ref <ShardBin: 0,BlobID: "/photos/blobs/AEnB2UoGu8EAVh7cdk3bS6meQ1nXOEZMWZ2VvEyKjgsdoSH75nIxT1qWwj7m9g9W1pBujj5BmoNJDctGuCkm6U9XDCVjp0nFpw.jji2BwXjHFlFb2fm",RefID: "",Size: 24358,Options: 3>,blobref: "ShardBin: 0\\nBlobID: \\"/photos/blobs/AEnB2UoGu8EAVh7cdk3bS6meQ1nXOEZMWZ2VvEyKjgsdoSH75nIxT1qWwj7m9g9W1pBujj5BmoNJDctGuCkm6U9XDCVjp0nFpw.jji2BwXjHFlFb2fm\\"\\nRefID: \\"\\"\\nSize: 24358\\nOptions: 3\\n"},Hash {hash: "5e0cf39efc6f01bce0cfb1e484cf88ec",algorithm: "MD5"}>,content_type: "application/x-www-form-urlencoded;charset=utf-8",Metadata {key: "batchid",value: "1350593121640"},Metadata {key: "client",value: "sharebox"},Metadata {key: "disable_asbe_notification",value: "true"},Metadata {key: "streamid",value: "updates"},Metadata {key: "use_upload_size_pref",value: "true"},Metadata {key: "effective_id",value: "102350915696485425077"},Metadata {key: "owner_name",value: "102350915696485425077"},Metadata {key: "album_abs_position",value: "0"} for upload id AEnB2UoGu8EAVh7cdk3bS6meQ1nXOEZMWZ2VvEyKjgsdoSH75nIxT1qWwj7m9g9W1pBujj5BmoNJDctGuCkm6U9XDCVjp0nFpw
PS.: The URL from image is correct, and code too.
URL from image:
https://www.superjogosinfantis.com.br/arquivos/2013/11/08/spongebob-perfect-teeth-527bbcd92260c_social.jpg
PHP Code:
<?php // login, it's ok doConnectToGooglePlus2('my-login', 'my-pass'); // image url $lnk = array('img'=> 'https://www.superjogosinfantis.com.br/arquivos/2013/11/08/spongebob-perfect-teeth-527bbcd92260c_social.jpg'); // post - return error above doPostToGooglePlus2('message', $lnk, 'google-plus-page-id'); ?>
Does anyone know the reason why?
November 8, 2013 at 2:57 pm #30422Will, let’s do it like this.
Try this code:
< ?php // login, it's ok doConnectToGooglePlus2('my-login', 'my-pass'); // image url $lnk = array('img'=> 'https://upload.wikimedia.org/wikipedia/commons/6/63/Wikipedia-logo.png');// post - return error above
doPostToGooglePlus2('message', $lnk, 'google-plus-page-id');
?>
I am pretty sure this will work. Now you need to investigate what is not correct with your image.
November 8, 2013 at 4:07 pm #30430CiroParticipantHello, again!
In other words, you say that problem is in Image URL.
Well, the URL is good, and works, see there:No prove this, I use the same image in Facebook post wall (Facebook SDK), and the post works perfect in facebook!
The error occours only in your API function (NextScripts).
Have another way to test and found the solution?November 8, 2013 at 4:56 pm #30437I tried to post that image I got the same error. Google rejects it for it’s internal reasons, I can only guess why. Something wrong from Google’s point of view either with the image or with the URL.
- AuthorPosts
- You must be logged in to reply to this topic.