Forums

#1 2009-08-24 16:27:46

teepusink
Member
Registered: 2009-08-24
Posts: 22

FB.Connect.streamPublish styling

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

 

#2 2009-11-06 04:44:22

Hems
New Member
Registered: 2009-10-29
Posts: 10

Re: FB.Connect.streamPublish styling

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

 

#3 2009-11-06 05:53:48

anatolyl
_Moderator_
From: Israel
Registered: 2007-10-16
Posts: 3782
Website

Re: FB.Connect.streamPublish styling

@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.


Anatoly Lubarsky

Offline

 

#4 2009-11-07 00:35:53

Hems
New Member
Registered: 2009-10-29
Posts: 10

Re: FB.Connect.streamPublish styling

thanks

Offline

 

#5 2009-11-07 03:40:05

Hems
New Member
Registered: 2009-10-29
Posts: 10

Re: FB.Connect.streamPublish styling

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

 

#6 2009-11-07 03:52:53

anatolyl
_Moderator_
From: Israel
Registered: 2007-10-16
Posts: 3782
Website

Re: FB.Connect.streamPublish styling


Anatoly Lubarsky

Offline

 

#7 2009-11-08 23:18:35

Hems
New Member
Registered: 2009-10-29
Posts: 10

Re: FB.Connect.streamPublish styling

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

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson