Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8545009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:41:31+00:00 2026-06-11T12:41:31+00:00

I created an activity json as following and posting to the google plus moments

  • 0

I created an activity json as following and posting to the google plus moments api

var activity = {
“type”: “http://schemas.google.com/AddActivity”,
“target”: {
“url”: “http://www.qontext.com”
}};

POST is successful but the moment is not shown the history. Authentication is taken care of.
Example url works fine. Can somebody help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:41:32+00:00Added an answer on June 11, 2026 at 12:41 pm

    As long as the provided target url does not return (html) content that includes the required meta data (http://schema.org/Thing) your inserted element will not show up in the Google+ History (no matter if the Response will be a HTTP 200 or not).

    Providing your meta data in the request body (as “result” JSON) does not work either. So you have to ensure that the target url will return HTML that contains the data that you would like to post.

    E.g. this can be done via a simple PHP script like this:

    <?php
        $name   = $_GET["name"];
        $desc   = $_GET["desc"];
    echo('
        <!DOCTYPE html>
        <html>
          <head>
            <title>emacberry DATA</title>
          </head>
          <body itemscope itemtype="http://schema.org/Thing">
            <section>Name: <div itemprop="name">'.$name.'</div></section>
            <section>Description: <div itemprop="description">'.$desc.'</div></section>
            <section>
              Thumbnail: <img itemprop="image" src="YOUR_LOGO_HERE"/>
            </section>
          </body>
        </html> 
        ');
    ?>
    

    so then just post

    {
        "type":"http://schemas.google.com/AddActivity",
        "target":{
            "url":"http://YOUR_SERVER/YOUR_SCRIPT.PHP?name=A_NAME&desc=A_DESC"
        }
    }
    

    by doing so you activity will be added to the Google+ History – but of course that implies interactivity with your server – which can also have some benefits for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am parsing json from the following url http://www.kaverisoft.com/careers/assignments/android/a1.php with the following code public
Hi I have created an activity which pulls data from json format text and
I have an application and every new created activity will start an async task
I created an activity which holds 3 custom components (defined in xml). 2 components
I have created an Activity that will behave like a popup menu is actually
I have created an activity which sends a number of notifications to status bar.
I have created an activity called viewActivity. It displays the shared files and folders
I have created an activity implementing on touch listener and onclick listener . Both
I am trying to display ListView . I have created one activity , in
The main activity includes some variables with set values. I created a sub-activity with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.