spring-social / spring-social-google

Spring Social extension with connection support and an API binding for Google

Home Page:https://spring-social-google.github.io/spring-social-google/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

insert new moment fails with http error 403 forbidden

evgenyh opened this issue · comments

Google api = connection.getApi();
api.plusOperations().insertMoment(new AddActivity("http://google.com"));

// result is 403 forbidden

Have you set data-requestvisibleactions as described here https://developers.google.com/+/web/app-activities/ ?
Also make sure your target page contains the required markup for the activity type.

Hi Gabi,
the target page is a Google+ page, so according to google's documentation
this shouldn't be a problem.

Have you succeed to post such activity ever with your code ? I just saw
that tests for activity publishing haven't been implemented in your project.

Thanks,
Evgeny

2013/11/23 Gabriel Axel notifications@github.com

Have you set data-requestvisibleactions as described here
https://developers.google.com/+/web/app-activities/ ?
Also make sure your target page contains the required markup for the
activity type.


Reply to this email directly or view it on GitHubhttps://github.com//issues/45#issuecomment-29131052
.

But did you set data-requestvisibleactions in the sign in page?
This worked when I last checked.

not.
thanks for pointing to this.

can you provide example snipped of code how data-requestvisibleactions
should be passed to spring social ?

Thanks

2013/11/25 Gabriel Axel notifications@github.com

But did you set data-requestvisibleactions in the sign in page?
This worked when I last checked.


Reply to this email directly or view it on GitHubhttps://github.com//issues/45#issuecomment-29183592
.

Should be something like this:

<form action="signin/google" method="POST">
   <button type="submit">Sign in with Google</button>
   <input type="hidden" name="scope" value="https://www.googleapis.com/auth/plus.me" />
   <input type="hidden" name="data-requestvisibleactions" value="AddActivity"/>
</form>

I'm working on a proper example application to demonstrate this.

great
thanks

2013/11/25 Gabriel Axel notifications@github.com

Should be something like this:
Sign in with Google

I'm working on a proper example application to demonstrate this.


Reply to this email directly or view it on GitHubhttps://github.com//issues/45#issuecomment-29184267
.