Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Facebook and Twitter Plugin custom post urls

9 replies [Last post]
Reply

This is my function for creating new flv player.

function createPlayer(medid, medimage) {
alert(medid);
var flashvars = {
file:"/jwplayer/video.flv",
autostart:"false",
image:"/jwplayer/preview.jpg",
plugins:"fbit-1&link=http://www.yahoo.com/"+medid+"&facebook.link=true,tweetit-1,vidrate-1,drelated-1&drelated.dxmlpath=/xml/relatedvideos.xml&drelated.dposition=center&drelated.dskin=/jwplayer/grayskin.swf",
dock:"true"
}
var params = {
allowfullscreen:"true",
allowscriptaccess:"always"
}
var attributes = {
id:"player",
name:"player"
}
swfobject.embedSWF("/jwplayer/player-licensed-viral.swf", "flashplayer", "400", "315", "9.0.115", false, flashvars, params, attributes);
}

How do i add custom URL's for facebook and twitter plugins, so when users click on those plugin icons they get those custom URL's posted in their facebook or twitter page?

Thanks
Vishal

Reply

http://www.yahoo.com in the above example will be my cutom URL

Reply

Did anyone figure out an answer for this? I'm using a licensed version of jw player in a site that uses jquery tabs. I'm dynamically rewriting the urls on the fly to provide deep linking on each tab, but the twitter/fb links strip that part off, so it always goes back to the homepage instead of the highlighted tab.

Reply

@snipe - Can you provide a link?

Reply

Hi Ethan - sure. http://welcometo.thejungle.com/#tab3-top

The #tab3-top is rewritten on the fly to allow deep-linking. (It doesn't use the jquery address plugin, because that plugin blows up when combined with cufon.)

If you share either of those vids via twitter, the tinyurl it comes up with chops off the hashtag.

Interestingly, in the FB share, if I'm on tab 3, the url in the sharer points to http://www.facebook.com/sharer.php?u=http://welcometo.thejungle.com/#tab3-top, but the url that shows up in the FB share box is http://welcometo.thejungle.com/#tab1. Not even sure where that's coming from.

Reply

Facebook works fine. Twitter generates this TinyURL - http://tinyurl.com/2bf6rb9, which goes to - http://welcometo.thejungle.com/#tab1-top, I am going to have to ask the developers of the plugin if this is because of how they are handling things, or if the TinyURL itself is doing this.

Reply

Yeah, I think the #tab1-top is being added on the page load, not by the tinyurl process. I think the hashtag is being stripped off altogether, so when you load the page, the jquery takes over (not finding a tab hash) and adds it onto the end.

Reply

Yeah.

I think TinyURL might be the culprit here. I will ask the developers, though.

Reply

Any news about the solution?

Reply

I asked them, but have not heard back yet, sorry.

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options