Hi,
I'm able to post a story to my feed using the example given.
i.e
var attachment = {'media':[{'type':'image','src':'http://bit.ly/AJTnf','href':'http://bit.ly/hifZk']};
FB.Connect.streamPublish('', attachment);
This basically have the image of the cat and the message you enter in the dialog popup.
How can I style the look of the story?
I'm able to add caption and description, but is there a way to add custom "key"? Like {*myKey*} and populate "myKey" with a value?
Also is there a way to style the placement? (i.e if I want the caption to show on the left of the image for example and just advanced styling using css in general)
Thank you.
Tee
Last edited by teepusink (2009-08-24 16:36:13)
Offline
function feed()
{
var txt=document.getElementsByName("nume");
var attachment = {
'name':'New comment on exemple',
'href':'http://www.exemple.com/#content1',
'caption':'{*actor*} commented Memorial candles',
'description':'rate it', ---------------------->>>>> /// Here i have to set txt variable How to do it.
'media':[{
'type':'image',
'src':'http://100brands.net/tagmyfriends/images/candles.gif',
'href':'http://www.exemple.com/'
}]
}
FB.Connect.streamPublish('', attachment);
How to store Var txt to description....???
Offline
@Hems
Attachemnt is a JSON object.
I'd suggest to read on the internet about JSON and how javascript can work with it (set properties, etc).
There are many examples out there.
Offline
thanks
Offline
can u plz give me the exact link for getting help what i want.. or similar think like that.. i have found a lot but i couldn't get any effective solution for my question. plz help me to come out from the problem.
if just let me know that is it possible to do that thing which i want..?
or i m tring to do wrong think which is exactly not possible.
hlp me plz
Offline
Offline
i have tried those things but it will not generate feeds. it just processed but atlast result is null...any other way to do this..
or any other keyword for make a research on this topic for generating feeds through textbox value passing.
Last edited by Hems (2009-11-08 23:20:24)
Offline