I'd like to show the a view of the latest activity created by a given user combined with status updates posted to their wall. Just like Facebook.

I've been checking out pribeh's LondonFuse site and he seems to have figured this out, so it has to be do-able.

I'm struggling with the Views settings.

1. I've got the activity_all view.
2. I've embedded an iton my profile pages with a status posting form above it using the technique in the FBSS documentation.
3. When I post to a user's wall, no new activity is generated in that view, though my post shows up over in /share_status

So what do I do to my activity/all view so it will show the latest statuses posted to a user's profile page in addition to posts from them?

Comments

bflora’s picture

It appears these issues have been discussed over here: http://drupal.org/node/725146 but the solutions were not finalized or documented. If I can get this working, I'll gladly document the process in layman's terms. I imagine a lot of people would like to be able to do this with FBSS and activity.

pribeh’s picture

StatusFileSize
new9.84 KB

Hi bflora,

I've attached a view that should get you what you need.

Essentially the most important items in the view that help to obtain the display of Facebook Statuses posted by both an owner and poster on a particular wall (user profile) are:

1. Argument - Activity Access: Activity Context User
2. Filter - Activity Access: Activity module's access control
3. Filter - Activity Access: Facebook_status module's access control (with both owner and poster checked)

I've also included the relationships Activity: Node for attaching node related fields and Activity: User for user related fields. The other filters let you pull in other related stuff like comments posted on a blog of yours, etc.

Let me know if you have any other questions.

pribeh’s picture

Hi bflora,

You mentioned in another thread linking to this one that you noticed the user image display issue. There is a thread for that here: http://drupal.org/node/743904

icecreamyou’s picture

Project: Facebook-style Statuses (Microblog) » Activity
Component: Code - Functionality » Documentation
Status: Active » Fixed

Thanks pribeh.

Moving to the Activity queue since this is really a question about how Activity Access/Context works.

bflora’s picture

@pribeh Thanks for the response!

Ok, I've imported the view you enclosed above and have placed it on my profile pages using the code to add the FB Status share widget + view combo.

It does not appear to be working "out of the box." Is it supposed to?

It appears that the view in question shows me the same activity feed on every profile I visit. It appears to be grabbing its argument from the currently logged in user.

Perhaps I need to tweak my settings on the view?

bflora’s picture

Also, what settings does the Argument - Activity Access: Activity Context User need in the view? Right now it's set to show all and nothing else.

Do I need to mess around with "Realms"? I've got all of them checked right now.

Scott Reynolds’s picture

Assuming your View is the same as above (BTW, please export yours and attach), you need to set up your page display to have a path something like this
user/%/activity

The Activity Access: Activity Context User will then use the placeholder (%) as its user id. Thus, user/1/activity will show activity around user 1, and user/3/activity will show activity around user 3.

edit:You seem like you could use a Views tutorial as well so here is some great videos for learning about Views http://drupal.org/node/248766

bflora’s picture

StatusFileSize
new11.57 KB

Hi, Scott,

Thanks for the response.

I've attached the view I'm trying to use. My goal for this view:

Show the latest activity and status updates from a given user AS WELL AS any status updates posted to that user's wall.

What I'm seeing from this view in the views preview, no matter what UID I feed the preview field as an argument, are the latest 8 posts from my currently logged in user. I want to see the latest posts from the UID I feed it + status updates posted to that person's wall.

icecreamyou’s picture

StatusFileSize
new5.46 KB

Brad, you have all the Realms checked at admin/settings/activity? Perhaps try clicking the button there to rebuild your Activity Access table.

Attached is my implementation on my main dev site.

pribeh’s picture

StatusFileSize
new36.04 KB

like Ice said, you definitely want to check your Activity Access table bflora. That's one that many overlook. You have to make sure to check Facebook poster and owner and rebuild permissions. Then try posting a new status on someone else's wall.

Also, I forgot to mention that I use panels to override the user profile page and display the view I attached. I then select the UID of the user under Activity Access: Activity Context User. I'm sure though it would work the same if you weren't overriding the profile page and simply used it inside FBSS' own stream block which shows up on the profile page.

Scott Reynolds’s picture

I haven't imported the View but whats with the second argument? Using the node relationship. What does that have to do with your goal?

pribeh’s picture

Oh, that's unnecessary. Sorry, test site snapshot.

Scott Reynolds’s picture

Title: View for showing a user's latest activity + statuses posted to their "wall?" » User Context argument doing something weird with other arguments
Category: support » bug
Status: Fixed » Active

Yep thats it, when I remove that argument it works. not sure as to why though.

With Views3, I anticipate we can remove some of this code.

pribeh’s picture

ok cool. I neglected that node uid argument. That shouldn't be in the view.

angelmax’s picture

Issue tags: +activity facebook fbss integration templates

Hi all,
thanks for your useful input. I have an issue somewhat related to this thread so I thought it would be appropriate to post it here.

I set-up a fresh installation with

Drupal 6.17
Activity 6.x-2.x-dev
Facebook-style Statuses 6.x-2.2
Facebook-style Statuses Tags is disabled

I rebuilt the Activity Settings / Activity Access Table, enabling
Facebook_status: Facebook-style Statuses Poster
Facebook_status: Facebook-style Statuses Owner

I set up Activity Templates as follows:
> Facebook status facebook_status fbss_submitted_other types All

OWNER MESSAGE
:: user=[user-name] | status-relationship=[status-relationship] | owner=[owner] | poster=[poster]| status-formatted=[status-formatted] | status-unformatted=[status-unformatted] | status-themed=[status-themed] | status-raw=[status-raw]

POSTER MESSAGE
:: user=[user-name] | status-relationship=[status-relationship] | owner=[owner] | poster=[poster]| status-formatted=[status-formatted] | status-unformatted=[status-unformatted] | status-themed=[status-themed] | status-raw=[status-raw]

PUBLIC
:: user=[user-name] | status-relationship=[status-relationship] | owner=[owner] | poster=[poster]| status-formatted=[status-formatted] | status-unformatted=[status-unformatted] | status-themed=[status-themed] | status-raw=[status-raw]

I have 2 users: 'Maxadmin' and 'Cecilia Gallerani'

If user Maxadmin posts on Cecilia's profile the status "FromMax2Cecilia"
this is what activity/all VIEW prints:

--
POSTER :: user=maxadmin | status-relationship=self | owner=maxadmin | poster=maxadmin| status-formatted=FromMax2Cecilia | status-unformatted=FromMax2Cecilia | status-themed=maxadmin FromMax2Cecilia 06/17/2010 - 16:20 | status-raw=FromMax2Cecilia
--

If I use the views kindly provided in this discussion at #2 and #9 I get the very same text.

**My question is: How can I print the PUBLIC Status Text "MaxAdmin said to Cecilia Gallerani: 'FromMax2Cecilia'"?**

It seems impossible right now since any status posted to Activity has user=owner=poster="maxadmin" so I can never get the "Cecilia Vallerani" name to be printed out.

The Module FBSS, on the contrary, prints correctly:
"maxadmin » Cecilia Gallerani FromMax2Cecilia 3 min ago"
that is exactly what I need to be printed in the "activity/all"

Please advice is this is a duplicate or it has been already replied somewhere (I wasn't able to find it) or if its relevant more to FB_SS rather than here in Activity.

Thank you very much for your patience.

A.M.

sirkitree’s picture

Category: bug » support

I'm not sure I see a bug here at all. Moving back to a support request.

rjbrown99’s picture

It has been more than a year since this issue was last touched. Is anyone still looking for support for this issue or can we move this to fixed/closed for now?

avpaderno’s picture

Issue summary: View changes
Status: Active » Closed (outdated)
Issue tags: -activity facebook fbss integration templates

I am closing this issue, as it's for a not supported project version.