close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Facebook link not working, others fine.

Thread began 2/11/2011 1:19 pm by mkrizsan422352 | Last modified 7/01/2011 4:46 am by love.forall8427785 | 8137 views | 15 replies |

mkrizsan422352

Facebook link not working, others fine.

So, I'm updating our website with SocialMeida Toolkit.
I am using Dreamweaver CS4 for the Mac.

I've set up a test page here to see how it behaves...

newstuffNew.shtml

We only want to link to 4 social groups ... Facebook, Twitter, Digg, Reddit.

I'm having two issues...

1. Inside Dreamweaver, only the reddit icon is appearing after inserting the buttons. The facebook icon is the standard Dreamweaver anchor icon, and the twitter and digg are missing. On the server side everything appears fine. But I'd like to be able to see the icons correctly displayed inside Dreamweaver as well.

2. All four social media links were suppose to point to an award... 101332-game-of-the-year-2010.html

BUT The facebook link redirects to the the same page it is on, newstuffNew.shtml

The other three direct correctly to the right link.

So how do I fix this?

Regards,
Mariann

Sign in to reply to this post

jkul

Facebook URL Share link

I am having the same issue. No matter what URL you enter for the Facebook share link, it picks up the page you are in and not the URL you want to share. Appears to be the same issue with other shares as well. So will we get an answer and a fix before the 15 day trial period is up... tick tock!!! ;)~

Sign in to reply to this post

Dani Chankhour

Can you please post back with the page that is having that issue. I would like to look at the code that is placed on the page?

Sign in to reply to this post

mkrizsan422352

Thank you for the reply.

??? The page is in the original post... newstuffNew.shtml

Look for the Social media link strip (there is only one).

I purchased social media toolkit because it looked perfect for our needs, but the facebook link loads the page it is on. I took a look at the <div> tags that wasocial inserted and it looks like it is trying to pass the correct link (101332-game-of-the-year-2010.html) to facebook, but somewhere along the line it redirercts to itself.

Mariann

Sign in to reply to this post

Dani Chankhour

Thanks Mariann, i confirmed that this is an issue with the way we send parameters to facebook share.

as a work around place replace the html for the facebook share which should look something like this:

<div class="icons"> <a name="fb_share" type="icon" href="http://www.facebook.com/sharer.ph?u=<?php echo urlencode('http://localhost/test/untitled3.php'); ?>" title="Facebook"></a>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
</div>

to

<div class="icons"> <a name="fb_share" type="icon" href="http://www.facebook.com/sharer.php?s=100&p[url]=<?php echo urlencode('http://localhost/test/untitled3.php'); ?>" title="Facebooks">
<img src="webassist/social/icons/facebook.png" width="16" height="16" /></a>
</div>

You will need to replace the url with your own url.

I have also attached a page with an example.

Attached Files
untitled3.php.zip
Sign in to reply to this post

jkul

facebook link

I replaced 'http://localhost/test/untitled3.php' in your sample code with my url, but now facebook asks what url i would like to post.

Sign in to reply to this post

neilo

Hi Dani,

It seems then that it's the

<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

part of the FB share code that is causing the selected page not to be used.

If you remove that, the FB share works, other than to fail to open the share confirm page in a pop-up window.

Presumably with an on-click new window, this would function as it should?

Sign in to reply to this post

neilo

I can simulate the behaviour (here) of the given Facebook share icon (clicked) by:

In the body: replace the Div class="icons" that contains the Facebook image link, url & script link with:

<div class="icons">
<img src="webassist/social/icons/facebook.png" width="16" height="16" onclick="MM_openBrWindow('http://www.facebook.com/sharer.php?s=100&p[url]=http%3A%2F%2Fwww.yeractual.com%2Findex2.php','Facebook','status=yes,width=600,height=400')" /></a>
</div>

Ans between the <head></head tags, place the onload open winow script:

<script type="text/javascript">
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
</script>

(But I am presumably not calling various other functions performed by the FB.Share script).

But this does open a window to share the chosen URL (in this case, www.yeractual.com/index2.php)

Sign in to reply to this post

Dani Chankhour

You are right neilo it is the facebook javascript that is causing the issue. On my work around i meant to completely replace the facebook share including with javascript include. The onclick event is probably going to be the fix to this issue.


jkul,

if you are still having an issue, can you please attach your page so i can look at the code you have on the page.

Thanks.

Sign in to reply to this post

jkul

Facebook posts appear to cache the page even though I added page expire code. This looks like an internal Facebook issue because I cant even delete my own posts within facebook. It is random when it wants to delete posts.
<% var varURL = Server.URLEncode("http://www.MyURL.com/u/Detail.asp?ADid=" + (rsAds.Fields.Item("ADID").Value))%>
<div class="wasocial">
<div class="icons"> <a name="fb_share" type="icon" href="http://www.facebook.com/sharer.ph?u=<%=varURL%>" title="Facebook"></a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
</div>

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...