Statuses do not display the "poster" picture but the "owner's" picture within an Activity 2.x view utilizing the "user: picture" field. I can get a patched build of FBSS (previous to March 1st) to work just fine but I can't get the latest build to work as desired.
- I've setup an Activity Publisher Template for both status updates and those posted on others' profiles.
- I've checked off the FBSS related Access Controls, rebuilt them.
- I've made sure to include the "Activity Access: Facebook Status .." for both owner and poster.
- The Activity views I build always include the arg "Activity ... Actor", and relationships for node and user (but they're set to "not required")
See http://drupal.org/node/725146 for more info.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | fbss_activity_strange.png | 37.17 KB | icecreamyou |
Comments
Comment #1
Scott Reynolds commentedsubscribing and swinging back later hopefully.
Comment #2
pribeh commentedThanks Scott.
Comment #3
icecreamyou commentedAs noted here, I can confirm this problem. However this should be the only relevant difference between the patched version and the current dev, and that was necessary to solve #728576: can only get fbss posts by the user and not posts done to user. (I'm not sure what's wrong here, but if I have to choose, I would rather have #728576 working.)
Comment #4
AdamM commentedSubscribing. I have the same problem as pribeh.
Comment #5
Scott Reynolds commentedThis is an error: http://drupalcode.org/viewvc/drupal/contributions/modules/facebook_statu...
That will produces
$realms['facebook_status_poster']['pid'] = SOME_IDAnd that produces
$realms['facebook_status_poster'][] = SOME_IDNot sure that fixes this but taking a quick pass at this, I can see thats a problem if only in syntax. The data very well might be saved away correctly.
This is mostly a note for myself.
Comment #6
icecreamyou commentedActually the first one results in this:
Of those two, the second seems more logical, although it's possible that the desired result is actually this:
...which neither produces.
Comment #7
mastermtg commentedI'm having the exact same problem. Is there a solution to display the status poster for the latest dev builds for FBSS and Activity? I've been searching and haven't found a detailed solution for this to work.
Comment #8
icecreamyou commentedThis issue is still open because there is currently no straightforward solution that does not involve coding.
Comment #9
icecreamyou commentedRe #5 it looks to me like the data is being saved correctly.
I spent the last 20 minutes trying to figure this out and failed. I think one viable solution though would be to write a relationship from Activity to FBSS for Views so that it doesn't have to go through the User table relationship. (One symptom of the current problem is that the poster id has the same value as the owner id for some reason, and it looks like it may be related to complex joins? I'm not sure. Well, either that or something to do with facebook_status_activity_access_grants().)
Comment #10
Scott Reynolds commentedThe important thing should be the activity.uid. No need for a relationship. The activity.uid should always be the person that 'did' something. The bug resides in the main object being wrong somewhere.
Comment #11
icecreamyou commentedWell, here's something weird.
Also, activity.uid is correctly recorded in the database. The problem is with the view, not with the data being recorded.
Comment #12
icecreamyou commentedWell, there's still something very wrong here, but since I can't figure out how to fix the core problem, I've added the Views field
Activity: FBSS Poster picto FBSS dev as a workaround.Comment #13
pribeh commentedcool that should definitely work for now. it'll mean loading two user pics but I have no problem theming that through a if statement and my views are loading quick enough anyway. Thanks Ice!
Comment #14
icecreamyou commentedMm? You should not need to load two user pics. The only performance issue is one minor query has to be run per row.
Comment #15
pribeh commentedSorry,
I didn't explain but I always use FBSS in Activity views. As a result I use the user picture to display along with nodes. If I then want to display the user picture for both authors of nodes as well as the poster of statuses I'll end up using both fields "user picture" and "poster picture." Not a big deal, like I said. Thanks again for providing a solution Ice.
Comment #16
icecreamyou commentedJust committed a change that turns "Activity: FBSS Poster picture" into "Activity: Poster picture." In other words, the field now displays the same as the "User: Picture" field if it's not on an activity message for a status update. This should eliminate any duplicate picture problems.