A continuation from this post, a new bug was found with regards to the view external link button on the facebook app, when the permalink contains the app's name.
Code in question:
<?php
// code to get the url of the orginal post for use in the "show external url view"
//get the permalink
$permalink_peices = parse_url(get_permalink());
//get the app_url and the preceeding slash
$permalink_app_url = "/".$app_url;
//remove /appname
$external_post_permalink = str_replace($permalink_app_url,"","$permalink_peices[path]");
//re-write the post url using the site url
$external_site_url_peices = parse_url(get_bloginfo('wpurl'));
//break apart the external site address and get just the "site.com" part
$external_site_url = $external_site_url_peices[host];
$exteral_post_url = get_bloginfo('wpurl').$external_post_permalink;
//echo external post url
echo "<a href='$exteral_post_url' title='View this post on the web at $external_site_url'>View post on $external_site_url</a>"; ?>