× Joomla Facebook Connect support forum

Topic-icon Custom Image on Facebook Status

Active Subscriptions:

None
14 years 3 weeks ago #3562 by albertyuen2000
Hi:

I am new to Facebook API, but I would like to do what a lot of applications are doing. I have attached a screenshot on what the JFBConnect 2.5.3 does, what I want to do and what I have done so far (but not meeting my requirements).

First of all, the current user status update is done using the Users.setStatus in the facebook API. It doesn't allow a picture to be associated with that. These are the top two notifications on my screen capture.

The 3rd one (Dickson Chan) is what I want to do, I want to associate an image with the status update. Afterall, an image says a thousand words and it will attract more people to click into my site. Note that I do not want facebook asking whether the user wants to do this or not. It's very annoying.

The last one is my attempt to implement the above by using Feed Forms. My code looks like this as I use FB.Connect.streamPublish:

FB.Connect.streamPublish('I just bought something from Puxzycat.com. Checkout this great site that sells Japanese Fashion at low prices. They also have a store in Causeway Bay, Hong Kong! Sign up and win a free gift!', attachment, actionLinks);

I think I can use "Stream.publish" instead right?

<!-- m --><a class="postlink" href="wiki.developers.facebook.com/index.php/Stream.publish">wiki.developers.facebook.com/ind ... am.publish

But the arguments are very different to Users.setStatus

<!-- m --><a class="postlink" href="wiki.developers.facebook.com/index.php/Users.setStatus">wiki.developers.facebook.com/ind ... .setStatus

So my question is:

Is it possible for you guys to write a function that does this and allow us to call it from anywhere within the Joomla framework (ie. Virtuemart, JoomGallery, etc.)? The key is attaching a picture to the message and the message can be up to 420 characters long according to facebook. Also, it doesn't ask the user for permission to publish. That's very important!

Thanks and really looking forward to a quick solution.

Albert
The topic has been locked.
Support Specialist
14 years 2 weeks ago #3574 by alzander
Albert,

I will definitely look into how to use publish rather than setStatus and get back to you. I think JFBConnect will still need to get extended permissions from the user, but it will only have to ask once (and it already does this):

Before your application can publish to the stream using this method, the user or Page must grant your application the publish_stream extended permission. If the user previously granted your application the permission to publish short stories into the News Feed automatically, then you don't need to prompt for this permission in order to call this method.


Thanks for the suggestion. I will post back here once I've found something for you to try.
The topic has been locked.