How do I now get headlines from my site up on the profiles of people who install my app? I noticed you mention a view and maybe something to do with actions and workflows. Could you provide the steps you did to get the Drupal for Facebook headlines in facebook profile boxes. Thanks.
Comments
Comment #1
FatPitchFinancials commentedI think I'm getting closer to the solution here. I have installed Actions and Workflow. In Actions, I created an action for "Facebook set profile FBML". Then I created a Workflow that triggers the Facebook set profile FBML every time a node is created. I got the date of the node to appear in my profile using the token [site-date]. However, I tried to create a link to the newly created node using $title - [site-date] and that didn't work. What do you have entered in your Action for your Profile FBML?
Comment #2
Dave Cohen commentedDrupalforfacebook uses an <fb:ref> in the profile, and sets the reference in an action, invoked from cron. Similar to what you are doing, but maybe not identical. And its possible the action to set profile fbml does not have all the features of the action that sets ref fbml.
Anyway, on drupalforfacebook.org, the ref fbml is defined as follows, with input format PHP:
Note that its difficult to write to the facebook profile. If you simply display a node teaser, you'll most likely include some tags that can't be displayed in a profile. The fb_views module includes a couple view types that are safe to include in a profile.
I have an action set up as you do, to post to the minifeed. I set the minifeed title this way:
I've set up another app, for demo purposes here: http://www.facebook.com/apps/application.php?id=26042630704
For it, I've updated to the latest actions code, which has better ways of scheduling actions (no workflow necessary). The code is not yet checked in, and the demo not yet documented. But I'm presenting it this weekend, and hopefully a video or screencast will be forthcoming. The actions stuff is going to change, at least a little bit, in the near future. And it will be better for it. (But for now, you are on the right track).
Comment #3
FatPitchFinancials commentedThank you for the response to my question. I have two follow up questions.
You stated, "an action, invoked from cron." How can I invoke an action from cron? Does the fb_cron.module do this for me automatically?
I created the ref fbml action just as you provided above. I created a view called fbml_tracker. I had the view provide a block with view type Facebook Discussion, 5 nodes, and all the fields specified in the fb_views module. I then tested the php you provided for the action in a block on my canvas page and it worked.
Then I went over to Actions and created a ref fbml action and I assigned it a handle of vinprofile. I used the php you provided and made sure the input was set to php. Now I figured that I can use the fb:ref to include the block on facebook profiles. I think the code for this would be:
<fb:ref handle="vinprofile" />Now where do I put this code. I tried adding it in the Default FBML in my apps settings page. I also tried adding it to the "Facebook set profile FBML" action. I'm getting "No content to display." on my facebook application. Any idea what's wrong?
Comment #4
FatPitchFinancials commentedI figured out my own question. I just had to go back to the facebook application node and set the fb cron for the ref fbml action. I completely forgot to do that before. I'm up and running now with headlines in my app user profiles.
Comment #5
Dave Cohen commentedCool.
Comment #6
72dpi commentedDave, you are indeed Jesus like mate.
hey FatPitchFinancials, any chance you would care to share how you did it mate?
I only have php4 sadly, and all i want to do is show my latest blog news from my Drupal site.
I am a bit lost on this one sadly...
Comment #7
abqaria commentedsubscribed
Comment #8
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.