Topic-icon Write on wall other than sign up or sign in

Active Subscriptions:

None
13 years 11 months ago #24178 by maxmedia
Is it possible to write to a members wall when they start something special or request a special page at our site?

For example we have some old regional movies, it is tha bomb if we could write on a members wall that he/she has viewed this video on our site.
Maybe this is possible by an onload function or something like that?
The topic has been locked.
Support Specialist
13 years 11 months ago #24183 by alzander
We're working on a feature update for the next major version of JFBConnect which will use Facebook's new Open Graph actions abilities. Then, when you visit a page on your site, you'll be able to have "John read page 'x'" or "Joe baked cookies" show up in their timeline. Much like Spotify spams every song a user plays. The initial version with those features should be out in the August/September timeframe.

Until then, if want to actually post to the user's wall, and you want to add some PHP coe to your site (and know where to do it), the doc below will show you how to post to a user's wall just like we do on registration/login:
Facebook Wall Posts from Joomla

Hope that helps, but let us know if you have other questions or need anything,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 11 months ago #24189 by maxmedia
Perfect! Thank you for this code!

I Will try this today with our test site, this opens a wide potential for our website
The topic has been locked.
Active Subscriptions:

None
13 years 11 months ago #24190 by jonng
Hi,

I have a similar requirement to this, except that I want the function of posting to a user's FB wall to be displayed as a link on a particular page.

For example, after a user has bought an item from my site, he will be taken to a "Thank You" page. I want to put a link on this page that will allow the user to click on it and automatically post to his FB wall that he just bought this item from my site, with a link back to this particular item. How can I do this?

Thanks,
Jon
The topic has been locked.
Support Specialist
13 years 11 months ago #24194 by alzander
No problem. Just watch out with posting too much stuff to a users wall. First, they have to have granted permission to do so (during registration), but then, they also can choose to mark those posts as spam. Too many get marked as spam, and it can look bad for your app. I wouldn't recommend posting everything they do on your site to their wall.

The Open Graph actions feature will be more suited toward littler 'actions' taken on your site, just so you know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 11 months ago #24196 by jonng
Hi,

Thanks for replying.

I guess I wasn't too clear about what I was trying to do. I don't want to post to a user's FB wall without their consent or knowledge. I want to have a link, or a button, on a specific page where the user can click in order to post to his FB wall.

For example, after a user has bought an item from my site, he will be taken to a "Thank You" page. On this page, I want to put a button where, if the user wants to, he can click on in order to post to his FB wall saying that he has bought this item from my site, with links back to this particular item.

How can I have this link or button on these pages?
The topic has been locked.
Support Specialist
13 years 11 months ago #24213 by alzander
(Reposting due to some code issues found):
Gotcha! Alright, to do so, you'll need to make a minor code change to our Javascript file and then add your own button or link in order to let the user have a "Post to wall" popup. This code is intended for our next release, and will be changed a bit before then, but should work for you now. Just be aware that when the next release (v4.4 comes out), you'll likely need to update your link!

First, edit the /components/com_jfbconnect/includes/jfbconnect.js file. Around line 246, you'll see:
catch (e)
                {
                }
            }
      }

      canvas: {
Modify it to add the feedPost function as below:
catch (e)
                {
                }
            }
        },       //////////////////// <---- Make sure you add this comma! /////////////////////////////

        feedPost:function (title, caption, description, url, picture)
        {
            var obj = {
                method:'feed',
                link:url,
                picture:picture,
                name: title, // page title?
                caption:caption,
                description:description
            };

            function callback(response)
            {
            }

            FB.ui(obj, callback);
        }
    },

    canvas:{
Then, on your purchase page, or thank you page, use the following code:
<a href="javascript:void(0);" onclick="jfbc.social.feedPost('Site or Page Title', 'Caption/slogan for page/site', 'Description of page, or maybe product?', 'http://site.com/link-to-product', 'http://site.com/link-to-image.jpg')">Tell your FB friends about your purchase!</a>

Hope that all makes sense. The link in the 2nd half will be more dynamically generated with the next release of JFBConnect to automatically pull in the title, description, url, and image of the current page (if not explicitly set), so it will be less complicated. We'll be adding one of those nifty {JFBCPostToWall} tags to do so. Until then though, you'll have to rough it with the code above :)

Let us know if you run into issues or have questions though!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 11 months ago #24239 by jonng
Thanks for this! I'll try it out.

Could you also give a brief description of each field? In particular, what's the difference between caption and description?

By the way, I have to say this is a brilliant component. Excellent support as well. Keep up the great work!
The topic has been locked.
Active Subscriptions:

None
13 years 11 months ago #24240 by jonng
No worries, scratch that. I found the description of the variables on FB.

Just tested it out and it's working well. Thanks again!

Just one more question. How can I pre-fill the message for the FB post? I tried to add in the 'message' variable but it didn't seem to work.
The topic has been locked.
Support Specialist
13 years 11 months ago #24242 by alzander
Glad you found the details for each of the fields. As for the message field, that was removed about 6 months ago from Facebook. It was apparently being abused by some admins by filling it in with things that normal users wouldn't say.. so now the message is always blank allowing the user to put whatever they want.

Finally, very glad to hear you find JFBConnect to be very good. If you haven't already, please consider leaving a rating and review for JFBConnect or our support on the Joomla Extension Directory. It's certainly not required, but very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Hope that helps explain, and best of luck,
Alex
The topic has been locked.