Can post activity, but nobody can see!

49 views
Skip to first unread message

Lucca Mordente

unread,
Aug 6, 2010, 10:47:42 AM8/6/10
to orkut Developer Forum
Hi there.

I'm posting an activity, but none of my friends can see it.

The idea is to post an activity without having the app installed. Is
that possible?

If not, what's the best solution for posting users activities from my
website to orkut?

Thank you all.
Lucca Mordente

Robson Dantas

unread,
Aug 6, 2010, 8:11:11 PM8/6/10
to opensoci...@googlegroups.com
You can post activities outside orkut using 2legged or 3legged oauth libraries.

- to use 2legged you need an opensocial gadget installed on user profile;
- 3 legged you dont need anything, just authenticate and use;

Libraries:

2legged: 

3legged: 

Regards,

Robson Dantas

2010/8/6 Lucca Mordente <luccam...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "orkut Developer Forum" group.
To post to this group, send email to opensoci...@googlegroups.com.
To unsubscribe from this group, send email to opensocial-ork...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en.


Lucca Mordente

unread,
Aug 6, 2010, 9:49:28 PM8/6/10
to orkut Developer Forum
I'm already using the 3 legged method and already posting an activity.

The problem is: nobody but me can see my posted activity!

Any suggestions?



On Aug 6, 9:11 pm, Robson Dantas <biu.dan...@gmail.com> wrote:
> You can post activities outside orkut using 2legged or 3legged oauth
> libraries.
>
> - to use 2legged you need an opensocial gadget installed on user profile;
> - 3 legged you dont need anything, just authenticate and use;
>
> Libraries:
>
> 2legged:http://code.google.com/p/opensocial-php-client/
>
> <http://code.google.com/p/opensocial-php-client/>3legged:
> Javahttp://code.google.com/p/orkut-os-client/
> PHPhttp://code.google.com/p/orkut-os-client-php/
>
> <http://code.google.com/p/orkut-os-client-php/>Regards,
>
> Robson Dantas
>
> 2010/8/6 Lucca Mordente <luccamorde...@gmail.com>
>
>
>
> > Hi there.
>
> > I'm posting an activity, but none of my friends can see it.
>
> > The idea is to post an activity without having the app installed. Is
> > that possible?
>
> > If not, what's the best solution for posting users activities from my
> > website to orkut?
>
> > Thank you all.
> > Lucca Mordente
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "orkut Developer Forum" group.
> > To post to this group, send email to opensoci...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > opensocial-ork...@googlegroups.com<opensocial-orkut%2Bunsubscrib e...@googlegroups.com>
> > .

Robson Dantas

unread,
Aug 7, 2010, 9:46:12 AM8/7/10
to opensoci...@googlegroups.com
Hi Lucca,

Can you post the RPC message you are sending ?


Robson Dantas

2010/8/6 Lucca Mordente <luccam...@gmail.com>
To unsubscribe from this group, send email to opensocial-ork...@googlegroups.com.

Lucca Mordente

unread,
Aug 8, 2010, 6:51:00 PM8/8/10
to orkut Developer Forum
Robson,

here is the JSON i'm sending:

[
{
"method":"activities.create",
"params":{
"userId":["@viewer"],
"groupId":"@self",
"activity":{
"body":"activity body",
"title":"activity title"
},
"appId":"@app"
}
}
]

Thanks!
Lucca Mordente

On Aug 7, 10:46 am, Robson Dantas <biu.dan...@gmail.com> wrote:
> Hi Lucca,
>
> Can you post the RPC message you are sending ?
>
> Robson Dantas
>
> 2010/8/6 Lucca Mordente <luccamorde...@gmail.com>
> > > > opensocial-ork...@googlegroups.com<opensocial-orkut%2Bunsubscrib e...@googlegroups.com><opensocial-orkut%2Bunsubscrib

Robson Dantas

unread,
Aug 9, 2010, 1:50:19 PM8/9/10
to opensoci...@googlegroups.com
Lucca,

Looks like great, according to PostActivityTx.java:

public class PostActivityTx extends Transaction {
  private final JSONObject activity = new JSONObject();

  PostActivityTx(String title, String body) {
    super(RequestIds.ACTIVITIES_CREATE, MethodNames.CREATE_ACTIVITIES);
    // TODO(birmiwal) change this to USERID_ME when support for this
    // is pushed in backend
    request.setUserId("@viewer")
           .setGroupId(Group.SELF)
           .addParameter(Params.ACTIVITY, activity)
           .addParameter(Fields.APP_ID, InternalConstants.Values.APP);
    Util.putJsonValue(activity, Fields.TITLE, title);
    Util.putJsonValue(activity, Fields.BODY, body);
  }
}

Will test it on my lib and back soon.

Regards,

Robson

2010/8/8 Lucca Mordente <luccam...@gmail.com>
To unsubscribe from this group, send email to opensocial-ork...@googlegroups.com.

Lucca Mordente

unread,
Aug 9, 2010, 3:50:23 PM8/9/10
to opensoci...@googlegroups.com
Thanks!
I'm waiting (:

Lucca Mordente

Tiago Silveira

unread,
Aug 10, 2010, 9:12:04 AM8/10/10
to orkut Developer Forum
Hey, Lucca, you've uncovered a bug! The orkut opensocial team is
working on it. :-)

I find it great that you guys are starting to use 3LO more, 'cause
it's the only way we'll be able to provide a solid API for you.

Best,
Tiago

On Aug 9, 4:50 pm, Lucca Mordente <luccamorde...@gmail.com> wrote:
> Thanks!
> I'm waiting (:
>
> Lucca Mordente
>
>
>
> On Mon, Aug 9, 2010 at 2:50 PM, Robson Dantas <biu.dan...@gmail.com> wrote:
> > Lucca,
>
> > Looks like great, according to PostActivityTx.java:
>
> > public class PostActivityTx extends Transaction {
> >   private final JSONObject activity = new JSONObject();
>
> >   PostActivityTx(String title, String body) {
> >     super(RequestIds.ACTIVITIES_CREATE, MethodNames.CREATE_ACTIVITIES);
> >     // TODO(birmiwal) change this to USERID_ME when support for this
> >     // is pushed in backend
> >     request.setUserId("@viewer")
> >            .setGroupId(Group.SELF)
> >            .addParameter(Params.ACTIVITY, activity)
> >            .addParameter(Fields.APP_ID, InternalConstants.Values.APP);
> >     Util.putJsonValue(activity, Fields.TITLE, title);
> >     Util.putJsonValue(activity, Fields.BODY, body);
> >   }
> > }
>
> > Will test it on my lib and back soon.
>
> > Regards,
>
> > Robson
>
> > 2010/8/8 Lucca Mordente <luccamorde...@gmail.com>

Lucca Mordente

unread,
Aug 10, 2010, 8:01:45 PM8/10/10
to opensoci...@googlegroups.com
Hi Tiago.

Thank you! We are all waiting for this fix.

:)
Lucca Mordente


To unsubscribe from this group, send email to opensocial-ork...@googlegroups.com.

jmichael

unread,
Aug 17, 2010, 5:13:40 PM8/17/10
to orkut Developer Forum
Hi Tiago,

I am also planning on launching a 3-Legged app soon which posts
activities.
Do you have an ETA on a fix for the bug?


Thanks!
John

TT

unread,
Aug 18, 2010, 4:13:31 AM8/18/10
to opensoci...@googlegroups.com
Hi ,

My question is regarding Orkut API using C# (3-legged)  :

Do you know how I can set the user's status and also how I can publish stuff (activity ?) to the profile ?

I managed to do all of the following with the C# API : login, get user info, get user friends, get user contacts.
I use the following :
 http://orkut.gmodules.com/social/rest ,
 https://www.google.com/accounts/OAuthGetRequestToken ,
 https://www.google.com/accounts/OAuthAuthorizeToken ,
 https://www.google.com/accounts/OAuthGetAccessToken ,
 http://www.orkut.com/social/rest

 
Do you have a sample code ?
 
Thanks in advance,

Tamir

jmichael

unread,
Aug 19, 2010, 4:27:46 PM8/19/10
to opensoci...@googlegroups.com
Bump.

Any update on this bug fix? Roadblocking our app launch unfortunately :(

jmichael

unread,
Aug 23, 2010, 3:19:17 PM8/23/10
to opensoci...@googlegroups.com
Can we get an update on the status of the bug fix?

This is a severe bug on a critical piece of 3-Legged apps. It was reported 2 and a half weeks ago, and there is still no fix.
Please push this fix asap, or at least give an update with a time estimate. Thanks.

jmichael

unread,
Aug 23, 2010, 5:14:26 PM8/23/10
to opensoci...@googlegroups.com
To clarify, this appears to be a sandbox issue. If you do not have a sandbox account, you will not see the activity in the first place. If you do have a sandbox account you will see the activity, of course your friends will not see the activity unless they have a sandbox account as well.

The expected behavior is of course that the activity is visible to everyone since the app was authorized with 3LO.

I hope this information helps.

Lucca Mordente

unread,
Aug 23, 2010, 5:25:50 PM8/23/10
to opensoci...@googlegroups.com
Either when viewing or posting from a sandbox account, if I access my own sandbox profile link, I can't view the activity.

And yes, the app is authorized.


Lucca Mordente


--
You received this message because you are subscribed to the Google Groups "orkut Developer Forum" group.
To post to this group, send email to opensoci...@googlegroups.com.
To unsubscribe from this group, send email to opensocial-ork...@googlegroups.com.

jmichael

unread,
Aug 26, 2010, 3:06:52 PM8/26/10
to opensoci...@googlegroups.com
Bump...still nothing...

jmichael

unread,
Aug 26, 2010, 6:35:27 PM8/26/10
to opensoci...@googlegroups.com
Since the UI change to orkut today, ALL the past activities I saw are gone now.

Now when I post a new activity with 3-Legged auth, it only shows up on sandbox, not even on the regular site. What is going on here?

Mohammed Reza Bidiwala

unread,
Aug 28, 2010, 5:19:09 AM8/28/10
to opensoci...@googlegroups.com
Hii,
    Can anyone help me out..with a few task i want to build an application in c#.net from where i can post new jobs in the form of activity in my group is there any way out for this.any help is welcome.
Thanks,
Reza.

Tiago Silveira (Google)

unread,
Sep 3, 2010, 11:20:08 AM9/3/10
to opensoci...@googlegroups.com
Sorry for the delay.

3LO apps should now be able to post activities on sandbox. These will be visible to friends on sandbox only.

Please verify that this is working properly for you, and we can turn it on in production. We'd also like to measure the impact on activity stream load, so feel free to reply with any concerns.

Robson Dantas

unread,
Sep 4, 2010, 5:52:40 PM9/4/10
to opensoci...@googlegroups.com
Thanks Tiago! Will give it a try.

I'm consolidating a list of issues I've noted (using 3lo), and will forward soon.

Regards,

Robson Dantas

2010/9/3 Tiago Silveira (Google) <t...@google.com>
Sorry for the delay.

3LO apps should now be able to post activities on sandbox. These will be visible to friends on sandbox only.

Please verify that this is working properly for you, and we can turn it on in production. We'd also like to measure the impact on activity stream load, so feel free to reply with any concerns.

--

Lucca Mordente

unread,
Sep 13, 2010, 12:55:18 PM9/13/10
to opensoci...@googlegroups.com
Post activities to sandbox is now working fine!!

Thanks!
Lucca Mordente

Sambe

unread,
Oct 8, 2010, 4:58:53 AM10/8/10
to orkut Developer Forum
Hii there,

Can anyone help me with posting activities,

I am using 3-legged c#.net lib with the following JSON..
[{"params":{"userId":["@me"],"groupId":"@self","activity":
{"title":"this is the title","body":"activity
body"},"appId":"@app"},"id":"activities","method":"activities.create"}]

and the response which i am getting is this....
[{"id":"activities","error":{"message":"forbidden: app not
whitelisted","data":{"errorType":"noPermissions"},"code":403}}]

i dont know how should i proceed.because i already have a consumer key
and secret and how should i make an app as whitelist in 3-legged??

Please Help some one....
Waiting for Reply....
Thanks,
Sambe.

Sambe

unread,
Oct 8, 2010, 5:00:08 AM10/8/10
to orkut Developer Forum

On Aug 10, 6:12 pm, Tiago Silveira <t...@google.com> wrote:

Martin

unread,
Oct 18, 2010, 1:30:27 AM10/18/10
to opensoci...@googlegroups.com
I have the same problem, any update?
Reply all
Reply to author
Forward
0 new messages